**O ServeRest é uma API REST gratuita que simula uma loja virtual com intuito de servir de material de estudos de testes de API.**
**Não deixe de seguir o [autor do projeto](https://github.com/PauloGoncalvesBH) e deixar um star no repositório: [github.com/ServeRest/ServeRest](https://github.com/ServeRest/ServeRest)**
Essa página documenta todas as rotas e como acessá-las. Para mais detalhes do ServeRest (como executar localmente utilizando Docker ou NPM, alterar timeout de autenticação, etc) acesse [o repositório do ServeRest](https://github.com/serverest/serverest).
Está utilizando Postman? Importe o [JSON do Swagger](https://raw.githubusercontent.com/ServeRest/ServeRest/trunk/docs/swagger.json) para ter acesso às collections.
Vai fazer teste de carga? Leia a seção '[Teste de Carga](https://github.com/ServeRest/ServeRest#teste-de-carga)'.
Muito obrigado ♥ a todos que apoiam o projeto [financeiramente](https://opencollective.com/serverest#section-contributors) ou [com código, ideias e divulgação](https://github.com/ServeRest/ServeRest#contribuidores-), graças a vocês **mais de R$ 2000,00 foram doados para a ONG [Todas as letras](https://todasasletras.org/)** até o momento.
O ServeRest possui um front, com status em beta, não deixe de conhecer: [front.serverest.dev](https://front.serverest.dev).
Precisa de apoio? [Abra uma issue](https://github.com/ServeRest/ServeRest/issues) ou contate o mantenedor do projeto:
Contact Support:
Name: Paulo Gonçalves
| Summary Item | Total | Failed |
|---|---|---|
| Requests | 435 | 0 |
| Prerequest Scripts | 85 | 0 |
| Test Scripts | 435 | 0 |
| Assertions | 2045 | 120 |
| Skipped Tests | 0 | - |
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 201
expected undefined to exist
expected '{\n "message": "Cadastro realizado com sucesso",\n "_id": "Z3nn3KJhXIz6oEt1"\n}' to include 'password não pode ficar em branco'
expected response to have status code 400 but got 200
expected undefined to exist
expected '{\n "quantidade": 3,\n "usuarios": [\n {\n "nome": "Fulano da Silva",\n "email": "cicrano@qa.com.br",\n "password": "teste",\n "administrador": "true",\n "_id": "2Huny5EhV94f9bH8"\n },\n {\n "nome": "leonardo Silva",\n "email": "leonardo@test.com",\n "password": "12345",\n "administrador": "true",\n "_id": "cFUgrMaMwU8eyxiN"\n },\n {\n "nome": "Editado funcional",\n "email": "edicaodeesquema@testao.yt",\n "password": "teste",\n "administrador": "true",\n "_id": "vlHskDNeKH9qSXGV"\n }\n ]\n}' to include 'Usuário não encontrado'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 405
expected '{\n "message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Nenhum registro excluído'
expected response to have status code 400 but got 200
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 405
expected '{\n "message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Rota exclusiva para administradores'
expected '{\n "message": "Nenhum registro excluído"\n}' to include 'Registro excluído com sucesso'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 201
expected undefined to exist
expected '{\n "message": "Cadastro realizado com sucesso",\n "_id": "SK8kfOz1ljktTfkJ"\n}' to include 'password não pode ficar em branco'
expected response to have status code 400 but got 200
expected undefined to exist
expected '{\n "quantidade": 3,\n "usuarios": [\n {\n "nome": "Fulano da Silva",\n "email": "cicrano@qa.com.br",\n "password": "teste",\n "administrador": "true",\n "_id": "2Huny5EhV94f9bH8"\n },\n {\n "nome": "leonardo Silva",\n "email": "leonardo@test.com",\n "password": "12345",\n "administrador": "true",\n "_id": "cFUgrMaMwU8eyxiN"\n },\n {\n "nome": "Editado funcional",\n "email": "edicaodeesquema@testao.yt",\n "password": "teste",\n "administrador": "true",\n "_id": "vlHskDNeKH9qSXGV"\n }\n ]\n}' to include 'Usuário não encontrado'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 405
expected '{\n "message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Nenhum registro excluído'
expected response to have status code 400 but got 200
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 405
expected '{\n "message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Rota exclusiva para administradores'
expected '{\n "message": "Nenhum registro excluído"\n}' to include 'Registro excluído com sucesso'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 201
expected undefined to exist
expected '{\n "message": "Cadastro realizado com sucesso",\n "_id": "GriBYBMaZTwRXn7G"\n}' to include 'password não pode ficar em branco'
expected response to have status code 400 but got 200
expected undefined to exist
expected '{\n "quantidade": 3,\n "usuarios": [\n {\n "nome": "Fulano da Silva",\n "email": "cicrano@qa.com.br",\n "password": "teste",\n "administrador": "true",\n "_id": "2Huny5EhV94f9bH8"\n },\n {\n "nome": "leonardo Silva",\n "email": "leonardo@test.com",\n "password": "12345",\n "administrador": "true",\n "_id": "cFUgrMaMwU8eyxiN"\n },\n {\n "nome": "Editado funcional",\n "email": "edicaodeesquema@testao.yt",\n "password": "teste",\n "administrador": "true",\n "_id": "vlHskDNeKH9qSXGV"\n }\n ]\n}' to include 'Usuário não encontrado'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 405
expected '{\n "message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Nenhum registro excluído'
expected response to have status code 400 but got 200
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 405
expected '{\n "message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Rota exclusiva para administradores'
expected '{\n "message": "Nenhum registro excluído"\n}' to include 'Registro excluído com sucesso'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 201
expected undefined to exist
expected '{\n "message": "Cadastro realizado com sucesso",\n "_id": "ssRbbfE5zEAdAD3B"\n}' to include 'password não pode ficar em branco'
expected response to have status code 400 but got 200
expected undefined to exist
expected '{\n "quantidade": 3,\n "usuarios": [\n {\n "nome": "Fulano da Silva",\n "email": "cicrano@qa.com.br",\n "password": "teste",\n "administrador": "true",\n "_id": "2Huny5EhV94f9bH8"\n },\n {\n "nome": "leonardo Silva",\n "email": "leonardo@test.com",\n "password": "12345",\n "administrador": "true",\n "_id": "cFUgrMaMwU8eyxiN"\n },\n {\n "nome": "Editado funcional",\n "email": "edicaodeesquema@testao.yt",\n "password": "teste",\n "administrador": "true",\n "_id": "vlHskDNeKH9qSXGV"\n }\n ]\n}' to include 'Usuário não encontrado'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 405
expected '{\n "message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Nenhum registro excluído'
expected response to have status code 400 but got 200
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 405
expected '{\n "message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Rota exclusiva para administradores'
expected '{\n "message": "Nenhum registro excluído"\n}' to include 'Registro excluído com sucesso'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 201
expected undefined to exist
expected '{\n "message": "Cadastro realizado com sucesso",\n "_id": "Y7j6znrvyqhUmZIl"\n}' to include 'password não pode ficar em branco'
expected response to have status code 400 but got 200
expected undefined to exist
expected '{\n "quantidade": 3,\n "usuarios": [\n {\n "nome": "Fulano da Silva",\n "email": "cicrano@qa.com.br",\n "password": "teste",\n "administrador": "true",\n "_id": "2Huny5EhV94f9bH8"\n },\n {\n "nome": "leonardo Silva",\n "email": "leonardo@test.com",\n "password": "12345",\n "administrador": "true",\n "_id": "cFUgrMaMwU8eyxiN"\n },\n {\n "nome": "Editado funcional",\n "email": "edicaodeesquema@testao.yt",\n "password": "teste",\n "administrador": "true",\n "_id": "vlHskDNeKH9qSXGV"\n }\n ]\n}' to include 'Usuário não encontrado'
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 400 but got 405
expected '{\n "message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Nenhum registro excluído'
expected response to have status code 400 but got 200
expected response to have status code 403 but got 200
expected { Object (nome, email, ...) } to not contain keys 'email', 'password', 'administrador', and '_id'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 200
expected '{\n "message": "Registro alterado com sucesso"\n}' to include 'Rota exclusiva para administradores'
expected response to have status code 403 but got 405
expected '{\n "message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."\n}' to include 'Rota exclusiva para administradores'
expected '{\n "message": "Nenhum registro excluído"\n}' to include 'Registro excluído com sucesso'
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 15ddd9e6-8c48-49ff-8e2a-8945dddd9375 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 457dcd18-e858-4e9c-8ebc-18050a7b2d4d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9ae33e32-d1d1-4421-899b-3d16d5f90af3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Poster de Full metal Alchemist",
"preco": 281,
"descricao": "Para os apixonados pela série",
"quantidade": 69
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9cbf8bad-be2d-40a3-854f-4dc943509953 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "qZHRtF7WX11c3yWS"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b48a53fa-8882-43a8-accb-18557693c56e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e3e86cd2-8817-4496-a9c3-00098df0bedb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 889 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 51998980,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 925,
"descricao": "notebook",
"quantidade": "1439010",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Poster de Full metal Alchemist",
"preco": 281,
"descricao": "Para os apixonados pela série",
"quantidade": 69,
"_id": "qZHRtF7WX11c3yWS"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "941",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2815f0ee-70c6-4b53-9cf4-c2eed2c85aa2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9ae5b68f-632e-469d-8132-947d0115687a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 170 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"nome": "Poster de Full metal Alchemist",
"preco": 281,
"descricao": "Para os apixonados pela série",
"quantidade": 69,
"_id": "qZHRtF7WX11c3yWS"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "nome" | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| Resposta contem atributo "descricao" | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Total | 7 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 74e53bf4-50e7-4623-b821-8eda8d3d431d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 125 |
{
"nome": "Poster de Full metal Alchemist",
"preco": "281",
"descricao": "item editado",
"quantidade": "69"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8e0ebc03-9928-450c-9803-3169a7aae160 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c546783c-29bb-45e9-9d1b-ac2acef964a1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f3bb19cc-3ed7-4be2-98f7-50b0862965d1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e125f2ef-a14a-4201-87f6-b2e1ab7553e2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4af47d67-c72a-4d27-a426-0e7125faa1cf |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b1cc154b-43a9-43f4-ad84-303307280b77 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 075f2cb9-a0a8-45e6-a55a-908bc9d0d832 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 661 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 51998980,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 925,
"descricao": "notebook",
"quantidade": "1439010",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "941",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fe050b25-c4e3-4a7b-8c16-d02dff0aa695 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 110 |
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 146
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 07ac9f7f-5c03-455c-af63-f721a5081907 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d76069ab-a478-428a-b6a4-066166078608 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ea4214eb-228d-4a0a-b496-f20cd44fc532 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | d32dba2a-0c96-4c42-9d30-e8b903fe80f8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 509dd0b5-d844-473f-be07-a341bf6d2e1e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 655 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 51998980,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 146,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "941",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b2f328a4-ec2c-4426-97f4-5e4ef5f6bdc6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 294c050a-3efd-4ab8-bfe7-89ad8f2f0f5f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:25:59 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "DYI5KksKqrNh9sPF"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | e61effc3-618d-44d0-837a-80f0f1a7d08a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 26628b23-073b-432a-be05-5a02fde27504 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "DYI5KksKqrNh9sPF"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU1OSwiZXhwIjoxNjYyMzIwMTU5fQ.F7oux6z8Ek9UICZ6__uDy-aMmT9npe2i01C7ZSVNbvo |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1cc555ae-9fcd-4b03-bc2b-725d082a5db4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4ed9beb6-f248-4a52-92b4-f93fb80c1570 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 93b8da99-9e83-4947-b089-0f5dd3c8d1aa |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e8a63dca-eace-43ec-9baa-67eb3ce319e3 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MCwiZXhwIjoxNjYyMzIwMTYwfQ.0msirkqV6peF2Mmnrxce6NGKk3GFZoRakiBmz2eUA1Q"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c5102058-1e51-41ee-b320-291e570b5404 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 42a4f151-897e-43b2-92f7-f1ab808d630a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 655 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 51998980,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 136,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "941",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MCwiZXhwIjoxNjYyMzIwMTYwfQ.0msirkqV6peF2Mmnrxce6NGKk3GFZoRakiBmz2eUA1Q |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8eec8bfb-4b38-4773-a410-89944f78c7f7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0620634e-dbda-43bd-a109-1c464630634c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "MgNOqvBAhrAmTgFF"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 8c32f434-7af6-4f4c-9f7f-b7aa04516612 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0b0510ad-6d7f-4ace-ba8f-f5aa0ab7e98b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10",
"precoUnitario": 690
}
],
"precoTotal": 6900,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "MgNOqvBAhrAmTgFF"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MCwiZXhwIjoxNjYyMzIwMTYwfQ.0msirkqV6peF2Mmnrxce6NGKk3GFZoRakiBmz2eUA1Q |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d9d836ef-232c-4372-a5ea-06aee7289934 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 59dcd40e-c7a1-4d8c-ac33-df7dedcf0f42 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f52e53ac-f224-4adb-9e32-4d1c701c48d6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 121 |
{
"nome": "Leonardo Souza",
"email": "LeonardoSouza@hotmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c2637bc9-a071-4c94-a467-c6c8be4e3bbd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "HGKNYqLwHWUEPNXi"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f8e73310-2dca-463f-b225-19f6bdeaf4f9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 65 |
{
"email": "LeonardoSouza@hotmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3d74c78f-6c49-4328-a97b-0b0d83c4210a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 281 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ikxlb25hcmRvU291emFAaG90bWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTYwLCJleHAiOjE2NjIzMjAxNjB9.hHEPS_U4EsNjySIQmQGMSR78BUc23PhRMmIidTeQCGk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | bfa3f657-a9b4-4dcc-99a8-6924c9bd5365 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9b95afdd-50ca-4f9e-a78b-4a66a3aa076d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 659 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 136,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "941",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ikxlb25hcmRvU291emFAaG90bWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTYwLCJleHAiOjE2NjIzMjAxNjB9.hHEPS_U4EsNjySIQmQGMSR78BUc23PhRMmIidTeQCGk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fa16a490-cae5-4929-8830-2ee74af7868b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9c56b99f-826d-4696-8124-ef4f5d8bfbea |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "grctrdh9W2JxD5Be"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ikxlb25hcmRvU291emFAaG90bWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTYwLCJleHAiOjE2NjIzMjAxNjB9.hHEPS_U4EsNjySIQmQGMSR78BUc23PhRMmIidTeQCGk |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | e126b28f-e68f-4276-826d-6e9d392c82ba |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a5ceabaf-9053-47a6-9413-94e62628fde1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "HGKNYqLwHWUEPNXi",
"_id": "grctrdh9W2JxD5Be"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ikxlb25hcmRvU291emFAaG90bWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTYwLCJleHAiOjE2NjIzMjAxNjB9.hHEPS_U4EsNjySIQmQGMSR78BUc23PhRMmIidTeQCGk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7bccbe5c-cf45-41bf-843b-8eb98daa4c4c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6c18e82b-3c48-47a4-b73d-c209d2a6a83a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 397cc06d-faf2-461c-b76e-e59575b7818e |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2d9bb383-ee4c-425b-bee3-0391ab952df2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 904 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Leonardo Souza",
"email": "LeonardoSouza@hotmail.com",
"password": "12345",
"administrador": "false",
"_id": "HGKNYqLwHWUEPNXi"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 582c01bb-3ee5-4002-85a5-1e83c93c66c9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | faded949-081b-432b-a644-5897fdc43330 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1a397fab-3e55-4e30-b15f-914a0bd02f0a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "Leandro Souza",
"email": "LeandroSouza@hotmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8bb34b71-477f-4d95-aa30-16d6fd627b24 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "nfcMuUYIe6e9V8Bc"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | cd583e20-f0a3-4c5c-921e-bafc7b59c1cd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 64 |
{
"email": "LeandroSouza@hotmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 630d0ce5-7455-4a56-aafe-65cca53f33c8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 280 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9Tb3V6YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjAsImV4cCI6MTY2MjMyMDE2MH0.3fnO-VTju2ZzK5VXetCnFtnMYNPFzdKxTEl0FtXR4Eg"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9Tb3V6YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjAsImV4cCI6MTY2MjMyMDE2MH0.3fnO-VTju2ZzK5VXetCnFtnMYNPFzdKxTEl0FtXR4Eg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c5c22aa1-bc7c-45fc-9743-8cee61d732bc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Logitech MX Vertical",
"preco": 470,
"descricao": "Mouse",
"quantidade": 381
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 86fd08c9-daed-45f1-87b1-791a3493725c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 2b3f3286-8e71-4e69-ba2f-5a78bbe99ef3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e73893a2-4274-488f-9c61-e28ef7d0aea8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 659 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 126,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "941",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9Tb3V6YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjAsImV4cCI6MTY2MjMyMDE2MH0.3fnO-VTju2ZzK5VXetCnFtnMYNPFzdKxTEl0FtXR4Eg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c2e12def-4441-4d48-9a86-a0f7384c9832 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Jogo xbox - The Elder scrolls Skyrim",
"preco": 470,
"descricao": "Jogo de xbox360",
"quantidade": 332
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bcce7286-b652-461a-8494-8a607d28066c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9Tb3V6YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjAsImV4cCI6MTY2MjMyMDE2MH0.3fnO-VTju2ZzK5VXetCnFtnMYNPFzdKxTEl0FtXR4Eg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3abe6e70-cdbb-4ef3-96d7-065911258120 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | faa2edf2-0715-44f4-879e-a9cfb10cfc7c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 0c4da1c6-c236-4e04-8a48-e30085c67a7a |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 706aa41f-2ebc-44f4-b899-022263292b1b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 902 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Leandro Souza",
"email": "LeandroSouza@hotmail.com",
"password": "12345",
"administrador": "false",
"_id": "nfcMuUYIe6e9V8Bc"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 4b57913f-ae65-4439-99d1-bb56094c2ee9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 484db398-dbee-471f-a28a-58f63977e4db |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5696296d-34ce-425b-9dab-9a2a1f31b8e4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 100 |
{
"nome": " (",
"email": " (@eleicoes.2022",
"password": "12345",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ac1ead3b-f7ee-4e2d-b91d-295e7d04aac8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email deve ser um email válido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | d91cc1b0-7252-4108-91fe-a8ae889c4c55 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b37ca8fa-2d94-416c-a8e0-cf206b96bdb5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 83ffe7d9-aeec-4616-8d6e-fe386a64e73e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 18d83b5c-bfc6-4dca-bf6b-42a59ff09c2c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a2400ba9-6fab-495e-a4d0-09ffd0fb0786 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 117 |
{
"nome": "Leonardo Silva",
"email": "LeonardoSilva@yahoo.com.br",
"password": "",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | af490990-a2d5-4f84-b5c8-64604281d959 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:00 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 72d4e9d7-ae89-45f5-88fa-a1f3a40963fd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 107 |
{
"nome": "Joao Silva",
"email": "JoaoSilva@gmail.com",
"password": " ",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9c8d39fa-9655-42b0-8403-0f09970d2537 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "Z3nn3KJhXIz6oEt1"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "password" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | fb46d4da-c805-4fa2-99d9-0c2280519cc5 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2a4dd5f6-837b-44d2-bbcb-440256d558fa |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 890 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Joao Silva",
"email": "JoaoSilva@gmail.com",
"password": " ",
"administrador": "false",
"_id": "Z3nn3KJhXIz6oEt1"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ac752eba-5cad-4ef0-9743-12d3aa7d681a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Joao Tavares",
"email": "JoaoTavares@outlook.com",
"password": 123,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c801a8c9-2ccf-40cc-ab5b-578431e4c307 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 466fe7a2-09b4-489c-a77d-f461d9d2173a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Joao Tavares",
"email": "JoaoTavares@gmail.com",
"password": ONUKbiZZdxgIw73,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 145 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Adicione aspas em todos os valores. Para mais informações acesse a issue https://github.com/ServeRest/ServeRest/issues/225"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 500 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 19913cc9-235f-4207-bbab-8e6e1a3e23a0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0d464837-897e-442f-9820-7fb5d78fedf6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c36b961b-979c-40b8-9f19-48021f281d4f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 116 |
{
"nome": "Roberto Paucar",
"email": "RobertoPaucar@gmail.com",
"password": "12345",
"administrador": true
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 472b2256-a4ec-4c8a-bd89-b83bfc69a595 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5fa071e7-5eaa-4c5e-b226-5693c98a30f7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 110 |
{
"nome": "luiza Rocha",
"email": "luizaRocha@yahoo.com.br",
"password": "12345",
"administrador": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7da6bd57-1c58-4a68-b867-e0d29108951e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3f1a328d-96b6-4bb4-b101-83f8c0dc4963 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a1248dba-0a7a-4359-ae37-fbe3fb5743fe |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "message" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 15b85d6f-8ba4-4cd6-bb91-e6d548d2d9bd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3b26ad0a-0a34-46a0-9d19-27f2ccca3485 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 45 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Usuário não encontrado"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | ec196c0a-e8c6-42a4-98aa-bb9659eebca4 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 1ab5b102-9605-4c17-a001-850fc0babb86 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 018d84c9-f8c4-4f53-a240-1efd3cd56d3a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c6b884df-110f-4b9a-b139-b20eb5fbe98b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 150 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 95c7aa7c-c186-406f-bb99-2ae46b93b6fb |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 347b983a-b1e6-4717-a8fb-54783e774ea4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f5718b62-fe7d-4ae2-8bda-3dab589a3fad |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Helena 16458",
"email": "Helena16458@gmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a3a10251-d932-481e-bac8-56a28d0bcef7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "dkW9pqf6MC2tD2od"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5fdf8b2a-9bf1-424d-9aa0-1c2ff7fa75aa |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 61 |
{
"email": "Helena16458@gmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 39f4bc96-35cb-4dc3-b120-d07390e38da9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 276 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkhlbGVuYTE2NDU4QGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjEsImV4cCI6MTY2MjMyMDE2MX0.64gyJMSmwkpdA44sE39r1RxnGhWVlSHhDWRLPm2nFHw"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkhlbGVuYTE2NDU4QGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjEsImV4cCI6MTY2MjMyMDE2MX0.64gyJMSmwkpdA44sE39r1RxnGhWVlSHhDWRLPm2nFHw |
| Cache-Control | no-cache |
| Postman-Token | 3a95f8a5-c9d1-452a-8b5f-85fa42962032 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ab848d38-57b0-4adc-889d-21cff1b57ccb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 898 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Helena 16458",
"email": "Helena16458@gmail.com",
"password": "12345",
"administrador": "false",
"_id": "dkW9pqf6MC2tD2od"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkhlbGVuYTE2NDU4QGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjEsImV4cCI6MTY2MjMyMDE2MX0.64gyJMSmwkpdA44sE39r1RxnGhWVlSHhDWRLPm2nFHw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0ec1499e-760c-4c41-8188-16159521af54 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste-editado",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 996c293f-7b45-4266-8342-6c1c4387da51 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkhlbGVuYTE2NDU4QGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjEsImV4cCI6MTY2MjMyMDE2MX0.64gyJMSmwkpdA44sE39r1RxnGhWVlSHhDWRLPm2nFHw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9ad53ee3-9eca-49e8-b6f0-803e6c82466c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "Helena 16458",
"email": "Helena16458@gmail.com",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 57c9d0d6-5513-4b4b-8037-3a24135f1ced |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e4d4787d-e688-4095-bb0d-c2d798f65e95 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 393877a9-0362-4285-a2b7-eeba2ef14c67 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 23784299-5ccd-46fa-b8ec-4220b45f8520 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | caac3035-2344-4773-b443-dfcaecc6eb3c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkhlbGVuYTE2NDU4QGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjEsImV4cCI6MTY2MjMyMDE2MX0.64gyJMSmwkpdA44sE39r1RxnGhWVlSHhDWRLPm2nFHw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 93d98c68-fe71-449e-a441-aca86907ef3f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 129 |
{
"nome": "Experimento Elemento-X",
"email": "supermeninas@townsview.cn",
"password": "teste",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ae7d985b-f318-4741-8032-a31301b38737 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 147 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6f712415-adbd-4eb4-b60d-21c5bedce225 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d179f549-6a04-4311-bc0c-ebf7af965082 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 0 | 1 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Menssagem correta | |
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8de955a8-e596-4d60-b4ab-68f1ecffd5a9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0857886d-8945-4cd0-98e7-4a6a797d6a47 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 4bba1b23-db53-4a2e-b651-e06128b8c660 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d131ddc6-3edb-48b0-a648-b570e4c1ac1b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 109 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"descricao": "descricao não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Resposta Json, contem atributo "descricao" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d6d992b3-7b3a-455b-8e76-ff6d252c5fef |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 1fdd52e2-0126-4a95-89ff-ca1945168804 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e3c6f9f4-4c0d-4e10-810e-f326b1010f86 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 9999999999999999,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 84da6de9-d6b8-4199-a438-a4c413a769fb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 160 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "\"preco\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 445ed375-66e2-4e11-9240-152e5cdaee61 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 9999999999999999
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b396fec0-f641-4b77-ab04-3eba48236ab9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 221 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"quantidade": "\"quantidade\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 815774ba-79de-43a7-bc4b-9321dd58a67d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 99 |
{
"nome": "Estrela da eliana",
"preco": -10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fe5381ea-dd28-4f43-a599-9a8e15f89f27 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 429b7548-90b7-404e-935a-e0313d3ba808 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0.00000000000001,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 52bae131-4902-4bd0-8403-37e4f670c906 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c22cb57c-3792-4c7b-9b21-1d43dee4d1d7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 98 |
{
"nome": "Estrela da eliana",
"preco": 10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2148c714-1610-4fb3-8e5a-3818eabc9596 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "xFt39YumLP6raIFm"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 14752a96-2232-4668-8b5e-4eb86e2bde1d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 102 |
{
"nome": "Estrela da eliana",
"preco": -470,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 71f55af7-2279-4cee-87cc-cfb3732cbdd7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:01 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fd76aaf1-78f3-4d71-b6b2-75e1c0fb8aa4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Estrela da eliana",
"preco": 0.0000000000001,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 528ceee4-6ac7-4350-b2ef-bdec189fc068 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MSwiZXhwIjoxNjYyMzIwMTYxfQ.m0y5ZMeztlzHPu2_pqSQmT4Pqtlr-jIoE_6bA05ligA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 45ca3c80-9683-4a1b-a9ec-6d284b6559f7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d80090df-9d98-4fd8-9ea2-5734c4bcb9f8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2e732785-a187-41ae-af2b-073b15d4d0d3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 638749bf-9072-45de-9192-98bceab33a63 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Os carrinhos retornados são únicos por usuário
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9885525c-0ada-4767-9adb-e7ace9165d3b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 94ec9842-43f8-4402-912a-898a6f69e09d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 595 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 1,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 163321bd-78f4-4390-8b8e-ab02b8df46e5 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 89 |
{
"produtos": [{
"idProduto": "DVD box de One piece",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e3cba3ac-4fdc-4cc7-8980-f89c9738dba8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 155 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Produto não encontrado",
"item": {
"idProduto": "DVD box de One piece",
"quantidade": 10,
"index": 0
}
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "item" | 1 | 0 | 0 |
| Teste de atributos do item | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 074616c4-cc30-4e8f-b7a3-6df6ad031c72 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 86 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "-10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9b0b7feb-df88-440e-ade8-67e1cb645494 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9e21010a-552d-4c23-8e9a-431e7ec6ba45 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "0"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f3eea834-6bb9-4eb8-bcf4-a42ba704f327 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6c26fa6d-2392-4f39-9121-417c45e748e6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "a"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5c2bdc02-8904-4f37-ba48-6305a80051ce |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 140 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5f341864-a15c-4be6-afde-746add810de8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9623622b-21e6-4f1c-956f-07ffd58c6a54 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "Eht7rJNdrQynDzFl"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao concluir uma compra o carrinho é excluído.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 86c1da81-d1dc-4c0d-af30-82d1ece85de6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4a1b0ee9-1c31-4496-87bd-a0f746da2923 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 01c13e92-3854-4bb0-8337-075938841da0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8c1af756-4886-4633-9f1e-f2ec9cf7c924 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "89BqvtPQ6pLzwh2S"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | ef2517a5-fe18-4508-b6f4-86bc0bfe1230 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3efc0f67-d4cb-4c25-adec-79e670dcc17c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 52f6022a-b800-4174-aa7f-36789d24018c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 52 |
{
"email": "leonardo@test.com",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2e58c1fb-da7e-47d5-a4c6-771ae53dec85 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6a371ee5-d53a-4700-a544-3b883cb12df8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 40 |
{
"email": "",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f54b9f09-588d-4eb7-b143-565f494e8503 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e3d2853b-78bd-4fa4-99a5-934c90d1c6b1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 35 |
{
"email": "",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fcc58347-5b57-47a2-a7ce-d2b2a2366d3e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 104 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco",
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1a421cde-af7a-4e4d-b598-fc18b20f06ca |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 55 |
{
"email": "leonardo@test.com",
"password": 12345
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 322cd319-a299-4ce5-a2a1-fc6fca65fe21 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b32c0932-1a1c-4bb3-afbf-98a185a7957d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "lEonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 287acf92-4c30-4f4e-a029-e875e4d85d8c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 48 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Email e/ou senha inválidos"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 401 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 69a0ce06-6d8b-4a90-9534-a796b9800f64 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2af22dfc-44fb-43b3-ad8b-9e7722e5e35b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | dc6f3e6d-e18c-429d-94af-664741b3d601 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 94ec2125-dca6-49f6-a51e-c6124251cff2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 80d11308-f8fa-4c3b-b6d0-757afa58dd64 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "coleção de manga One Piece",
"preco": 979,
"descricao": "para bater no irmão",
"quantidade": 60
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 91182e64-e636-4079-a900-94aa3bc00be2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "fiOYdRGO5HQ2ePmJ"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ff8c51dc-2208-4794-8c97-559caf82947a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | eff71411-ac0b-43ad-a227-ec5ccd2ba836 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 876 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 126,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "coleção de manga One Piece",
"preco": 979,
"descricao": "para bater no irmão",
"quantidade": 60,
"_id": "fiOYdRGO5HQ2ePmJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "9391",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6fa26c31-8167-418f-bdc6-2372127e2a73 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8e4ca75d-01a0-4c22-a8ff-c017cb4422a2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 158 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"nome": "coleção de manga One Piece",
"preco": 979,
"descricao": "para bater no irmão",
"quantidade": 60,
"_id": "fiOYdRGO5HQ2ePmJ"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "nome" | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| Resposta contem atributo "descricao" | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Total | 7 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 54530b70-d1d9-425a-b47e-9a706fe46c35 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "coleção de manga One Piece",
"preco": "979",
"descricao": "item editado",
"quantidade": "60"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b38fd3e6-5462-4c6f-82c1-7651c494ddab |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6187c037-5ff3-48de-9767-d7f13df3ef42 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 55e3565a-ad2a-4042-a887-690b0fb913cc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d3ae280b-4224-4728-9ecd-dcebf419f98b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e8c1b4e8-c2b4-474a-9c4a-2d00d538ae53 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 91710a1d-597f-46c4-b130-996fdd5fd0e4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 48ca4aff-e90c-49f4-b243-f94a252018e7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 660 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 126,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 5,
"descricao": "Mouse",
"quantidade": "9391",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c31694d8-ef14-4b8f-a574-9ad1baa562ea |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": 225
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9a518b03-8bd5-46ad-a569-75097ff34496 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d368d197-d893-4e16-979a-2ac3e42c3aff |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5044a471-1a26-422c-97f5-1b23a982cf21 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 6b9a0fa4-5303-4ed9-9e2f-8690b7c771db |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 24f468e2-0fc5-4adf-a257-db519ef4fbe9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 659 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 126,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": 225,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6a64d169-2d0b-46b5-9c2a-c44db988ded7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b3503f69-3dd2-4974-b2a1-b574fa6c142a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "4XfiyifclVLpoBJx"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 0a0199a6-6446-4e41-a9ab-554c3bde11cc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f6eb8574-ef64-46d4-acee-8ffae74dcc59 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "4XfiyifclVLpoBJx"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d0bac4b6-a1e3-4e2a-aa49-c79370443206 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f1d05799-3ec8-4c6a-a6ec-208d241977eb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0ae90f99-0d9e-4892-bfc1-a3ed55f4eb0c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a60295e5-4836-45da-81f9-0ff1201664e2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:02 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 9de67c38-a1b1-44ba-be5a-c70984eba20c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c272a669-b79b-4a20-a113-079e8b06babd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 659 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 116,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": 225,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3f1036e8-e16d-4ca3-9418-ca3164d56dc6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c7e1e660-a6cd-4d51-8d0b-dc6345370b87 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "s4thvOzKwhzbMoDN"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 0061254e-1e82-4b2e-9675-2f8ad809729c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7213d3a8-f725-49aa-9226-e101e351874d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
},
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "s4thvOzKwhzbMoDN"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MiwiZXhwIjoxNjYyMzIwMTYyfQ.1M5ocVIHrv2oSpf-X6bmnNLZnrjv9z2q4uUdYHeD1-M |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d7577ddb-445a-4c47-82dc-11c2d300d0c8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fa464f7d-3dfc-4c19-9309-c9f31b13d9c5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a1dcc258-4edd-47af-80e2-75f67fbaa0b4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "luiza Rocha",
"email": "luizaRocha@gmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3f2b7135-990c-4f80-93a5-534e09134174 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "IgKV38BEh4gTx5uY"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5b403bfe-4a66-4bb8-b446-9f143186bce8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 60 |
{
"email": "luizaRocha@gmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b87960ed-f33e-49f0-89b9-19c97536af39 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 275 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imx1aXphUm9jaGFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MywiZXhwIjoxNjYyMzIwMTYzfQ.gzwOdOHU28UxouhJQV2EsNw6YFmK2h43iENCGt48MSk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 17daca31-fa9b-4677-b6c5-473681d70150 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 44037adb-8f84-4799-9c4a-ba156c1217a4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 663 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": "5199897010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": "10610",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": 225,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imx1aXphUm9jaGFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MywiZXhwIjoxNjYyMzIwMTYzfQ.gzwOdOHU28UxouhJQV2EsNw6YFmK2h43iENCGt48MSk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8093d644-e1b2-4545-8a8e-60779de5c0aa |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9550c316-25cd-4a29-8c0c-caa5194c85a1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "zNlRrfOoELakdiPH"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imx1aXphUm9jaGFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MywiZXhwIjoxNjYyMzIwMTYzfQ.gzwOdOHU28UxouhJQV2EsNw6YFmK2h43iENCGt48MSk |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 0b0c86bc-ad2b-45b9-a6d7-0b73a2671c8a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8b675bf2-e6e2-4e99-8cb9-4952902c4999 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10",
"precoUnitario": 690
}
],
"precoTotal": 6900,
"quantidadeTotal": "010",
"idUsuario": "IgKV38BEh4gTx5uY",
"_id": "zNlRrfOoELakdiPH"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imx1aXphUm9jaGFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2MywiZXhwIjoxNjYyMzIwMTYzfQ.gzwOdOHU28UxouhJQV2EsNw6YFmK2h43iENCGt48MSk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c9196374-1c76-420e-943f-a6f2b5499f72 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 376ec5a9-bb34-49a0-94fb-b6d1e736ea34 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 3004e735-9bf8-4e90-bcee-9063416840a0 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 37e30c1f-318b-467a-aa6b-ab28467ff610 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 896 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "luiza Rocha",
"email": "luizaRocha@gmail.com",
"password": "12345",
"administrador": "false",
"_id": "IgKV38BEh4gTx5uY"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7dc0f9d4-f4a0-4253-b410-ae2f3ad0e8ec |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8ecf0603-afdd-42c0-b482-56d85427a51d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 582d884c-8161-4250-88a0-696e22d0e314 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "Beto Carvalho",
"email": "BetoCarvalho@hotmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 407fdd63-7df0-4b8f-a2f1-ff7514ce44ab |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "vQmHg1kz0Jt7W0vu"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | db5f16a1-c84a-40f1-98dd-a96ca81d2548 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 64 |
{
"email": "BetoCarvalho@hotmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ffb52dfc-fc7d-4ac8-a8c8-b3ddd6d19789 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 280 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9DYXJ2YWxob0Bob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjMsImV4cCI6MTY2MjMyMDE2M30.iK0get56i7oER7a2LdeS5TlrzfC58EDmdV_MMPkK_uE"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9DYXJ2YWxob0Bob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjMsImV4cCI6MTY2MjMyMDE2M30.iK0get56i7oER7a2LdeS5TlrzfC58EDmdV_MMPkK_uE |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ce99e5d7-15af-4e29-bfb3-a2d8847af1a8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Logitech MX Vertical",
"preco": 470,
"descricao": "Mouse",
"quantidade": 381
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0a1e21ef-0ce2-40a1-91ba-de10b2022839 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | fa5832a9-3a70-4716-bcca-370af4d1edaf |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 79dc1f17-2670-478a-bc9d-35baba818ed5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 661 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": "10610",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": 225,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9DYXJ2YWxob0Bob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjMsImV4cCI6MTY2MjMyMDE2M30.iK0get56i7oER7a2LdeS5TlrzfC58EDmdV_MMPkK_uE |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 55139053-3d18-4f03-85b5-785bfa00fc4c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Jogo xbox - The Elder scrolls Skyrim",
"preco": 470,
"descricao": "Jogo de xbox360",
"quantidade": 332
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8f590492-b34a-4930-a412-11bd2b32aa5c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9DYXJ2YWxob0Bob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjMsImV4cCI6MTY2MjMyMDE2M30.iK0get56i7oER7a2LdeS5TlrzfC58EDmdV_MMPkK_uE |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 66c86c44-7245-413a-8bde-629b4658c985 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9089330f-eb15-4400-9ff7-768c80a0a810 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | d8290abf-af5d-40a5-834d-733ebad7ebaf |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8a8818b8-6ff2-4b18-af42-102c2a8a943c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 902 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Beto Carvalho",
"email": "BetoCarvalho@hotmail.com",
"password": "12345",
"administrador": "false",
"_id": "vQmHg1kz0Jt7W0vu"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9ae41fc9-b994-4fb6-a67c-680569e5aead |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 57a0daf4-c8f8-426e-ac93-9f81b0ce3bd2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8bbbfdb5-1510-4422-bd43-265dd29a89f4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 93 |
{
"nome": "1234 {",
"email": "1234{{",
"password": "12345",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 97258ae4-5bcd-4614-802f-f995cb29da97 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email deve ser um email válido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | aa19bd58-39bd-4fdd-835a-8d65596787c3 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6a2c6ba1-b1c7-4d98-bcf3-330b237af130 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | eeec0c2f-339e-4c59-9e5a-381aed63fd2d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7089dbf8-228a-4ed7-9dcf-1d74dfc022d9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 864d536c-a5ea-4ac5-8353-0e20a9502ded |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "Antonio Silva",
"email": "AntonioSilva@outlook.com",
"password": "",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 33b39dcc-4047-4615-8c13-3b8a8f90a1d2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5e39d938-f12b-426d-a056-b727e90d81b3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 109 |
{
"nome": "524829 Maia",
"email": "524829Maia@gmail.com",
"password": " ",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3afaa97b-4174-4ac3-a5fb-b47f12319c8b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "SK8kfOz1ljktTfkJ"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "password" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | ad25a5ee-a26b-4216-8b69-858fc4509eda |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f20f2d8f-cd9c-4d49-ad8b-2d1477c808a0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 892 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "524829 Maia",
"email": "524829Maia@gmail.com",
"password": " ",
"administrador": "false",
"_id": "SK8kfOz1ljktTfkJ"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7cf1df5d-c545-455e-9d88-6eea31309eac |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "luiza Martins",
"email": "luizaMartins@gmail.com",
"password": 123,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 61be7cdd-f578-41a0-8a97-2e32aec8e7a5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 05ac174f-330f-4d9a-901b-40378ed567f6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 127 |
{
"nome": "luiza Betanea",
"email": "luizaBetanea@hotmail.com",
"password": cJ0h_XPIUc2tvYG,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 145 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Adicione aspas em todos os valores. Para mais informações acesse a issue https://github.com/ServeRest/ServeRest/issues/225"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 500 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 783529fb-81f9-45ea-9e39-5d0d5dc3605e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a0d4d69a-1cbb-4f5d-8d6a-5cee594dea75 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 40146d9e-835b-4202-9e04-c07f939c6824 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 110 |
{
"nome": "Lucas Silva",
"email": "LucasSilva@gmail.com",
"password": "12345",
"administrador": true
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b5a894fa-2b5a-4e99-a60e-ec2bd391f311 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 54d6c7f0-74b1-45c0-abfa-eb05043feeee |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "Lucas Andrade",
"email": "LucasAndrade@yahoo.com.br",
"password": "12345",
"administrador": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0335b40a-dbf8-4047-9309-f35681360f63 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b93a8347-3613-4933-a5d8-83adb76bf63b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 84348ff8-9082-4b4c-9976-31862b6c60b5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "message" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | d41d17d3-0db5-4fb7-aef2-c3f5ef0b9070 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d3672f9c-ad87-4466-90a2-0bc05876f326 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 45 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Usuário não encontrado"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 3152342e-59ce-495a-818c-49451dc7cf2c |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7da836d8-c330-4017-9b48-30c017b7de14 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6e632d91-e8f4-4f9b-88df-cdf303947e3b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 32472a5c-6749-4c4c-97bd-ddda13e2208d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 150 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | d914e88a-9bf4-4f30-8db4-9fa1d2e3985e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 45660cf3-8dc1-4180-b449-d29e49ec79e8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:03 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0aeb7842-44ac-4ba4-8c1b-4269db44e203 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "Clarrise Silva",
"email": "ClarriseSilva@gmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 1df0a7cc-77b6-4e03-a636-f44155e1a694 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "jubXwQsMrVpEMbNk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e857548f-d6ed-4579-806e-ff8733cf71db |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 63 |
{
"email": "ClarriseSilva@gmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 680ee01f-efc0-46a3-9334-47a0e02f7bfb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 279 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNsYXJyaXNlU2lsdmFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.UswviTr8EjSiP9v6y6uEQlxuJmoNITzcS8keux_Txbw"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNsYXJyaXNlU2lsdmFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.UswviTr8EjSiP9v6y6uEQlxuJmoNITzcS8keux_Txbw |
| Cache-Control | no-cache |
| Postman-Token | c0b08792-8267-41a9-9647-8be42369c0a4 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 158099ef-2e9d-48e6-96b8-37ab3e17bf49 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 902 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Clarrise Silva",
"email": "ClarriseSilva@gmail.com",
"password": "12345",
"administrador": "false",
"_id": "jubXwQsMrVpEMbNk"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNsYXJyaXNlU2lsdmFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.UswviTr8EjSiP9v6y6uEQlxuJmoNITzcS8keux_Txbw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3c83e6fe-4f4f-429b-835f-e115a7acee80 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste-editado",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ad149993-25b2-49f2-afd7-3b7d61c600dc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNsYXJyaXNlU2lsdmFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.UswviTr8EjSiP9v6y6uEQlxuJmoNITzcS8keux_Txbw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7b19e96b-892a-4cf9-9e65-c9338b7caaa1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 118 |
{
"nome": "Clarrise Silva",
"email": "ClarriseSilva@gmail.com",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 79ad56c3-2265-4257-8f60-386a51a09cdb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | aedd2f3a-4fed-497a-a461-979631037c2e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 501cf7cb-f6ea-4d5c-b4ec-3873f9a5bb9b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 4b1802f9-ba95-4713-a17b-e97732ddfdef |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 16d2979b-42c9-4455-9f65-26843b4643b8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNsYXJyaXNlU2lsdmFAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.UswviTr8EjSiP9v6y6uEQlxuJmoNITzcS8keux_Txbw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | cddb205c-1183-45dc-91d7-76d734e6a99b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 129 |
{
"nome": "Experimento Elemento-X",
"email": "supermeninas@townsview.cn",
"password": "teste",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 79099cf8-36b4-4f48-a49c-52a2144e9beb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 147 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a4f60840-0009-4269-939e-e4a7e3473519 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 21a0e5a3-f344-49e0-b799-7510b58fc7f9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 0 | 1 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Menssagem correta | |
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bcc84124-f304-43c1-b327-b7cb30f775cc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 88ae76f8-882a-4159-ba8a-35fa2fb9698b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e26219ea-22c9-4c80-8712-adf88f793220 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | de7881ac-b815-43a6-8e59-cc75ddb54c0d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 109 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"descricao": "descricao não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Resposta Json, contem atributo "descricao" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9ce34555-ad6c-47c4-a225-61699a90cd19 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 760d6f33-a3ca-40b1-ac47-66986f4b6a08 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c171c253-1b4a-4bd3-8a32-723be7fba0b7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 9999999999999999,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 36f1af03-d57b-4c37-a562-81d20cd9d9aa |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 160 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "\"preco\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3275de53-c3ef-4db4-af7b-039e16063361 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 9999999999999999
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cf3e9fb1-6995-4b55-b58a-ccae75f2430e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 221 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"quantidade": "\"quantidade\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 620cbf36-f738-40ff-a0fa-db5076a164eb |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 99 |
{
"nome": "Estrela da eliana",
"preco": -10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e9524548-0801-4e05-be99-355aabb8aa01 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a7119218-4039-42e7-8b53-ecfa0218d19c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0.00000000000001,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0e0b6b43-9e96-49f5-8ad6-ad9a7eb12eab |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3871b7cc-4811-480e-912d-b7e7933264d5 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 98 |
{
"nome": "Estrela da eliana",
"preco": 10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9de6f590-b8fb-4e4c-9cc1-3ecd0da05dab |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "0WGAafkWm15Ua42G"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 615cbf80-b613-4e9b-b5e2-974604e0df9e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 102 |
{
"nome": "Estrela da eliana",
"preco": -470,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3deead24-248a-4b17-a07f-cdb5c7459b1c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ebe30c42-4573-40ac-bce2-2607f23d92ae |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Estrela da eliana",
"preco": 0.0000000000001,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 1f913b21-ac24-422d-a663-2edf71aa1d1a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 008fd2c8-d623-49a8-8779-076399bdc491 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e4e426b2-09f7-42f6-ad1f-b3f57da5bf7a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 604bb067-94c9-42af-8364-198e04b3744a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d0f3c0b2-57bc-45f0-a317-5def903dba21 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Os carrinhos retornados são únicos por usuário
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6a602bb6-67f0-49cd-82e7-bc483c2402ca |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 259b1976-b65b-48af-a8da-5dca5dd7097e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 595 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 1,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a645b5e8-3bb7-4a56-82e4-c6d449237f56 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 89 |
{
"produtos": [{
"idProduto": "DVD box de One piece",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f7705981-fc61-486f-bc65-fb2ed31f170a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 155 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Produto não encontrado",
"item": {
"idProduto": "DVD box de One piece",
"quantidade": 10,
"index": 0
}
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "item" | 1 | 0 | 0 |
| Teste de atributos do item | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2d64bcb2-76e6-464e-b696-3f28e2336638 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 86 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "-10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9b913517-bbeb-4786-8138-27fd7cd7b968 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 01550a5e-9c6a-45a5-ae45-a7a004582bcb |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "0"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6cae1051-8f88-4dda-9769-6a6b0d534a51 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 119b6970-1ae4-46f3-bf53-e7edf3a03627 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "a"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 1596e4bd-f3c6-43a1-880a-296ab96839ea |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 140 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0967880a-d379-4d3d-8f5b-5581aae97b51 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c6371fb0-e050-4ad7-98fa-9416b8f771f5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "EIVMfHW1kV6WP6TW"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao concluir uma compra o carrinho é excluído.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 9a7af62c-36a0-4a11-a77b-3ee827b8156a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d77cd4f0-992d-41ac-b9cc-163b79f2231f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1974a905-bcb9-4a56-b23c-663957c1c123 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4612de2d-6b47-4508-91e6-a85512ed98fb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "oLnchgIWVBmd1PUC"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NCwiZXhwIjoxNjYyMzIwMTY0fQ.qUGOQT_dQDRwUUTNs7MtHTMt1CrYdmDOBluZUI1VsA0 |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 3dec5340-398e-476c-95bd-e02a94780087 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9e32d2c0-810c-47db-8567-8f7f9f3ce15a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 820c9ae5-27aa-4261-8eee-4658fb31d871 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 52 |
{
"email": "leonardo@test.com",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 58f527d9-c313-4c0c-9c34-256221eed90d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f2b13051-e8f7-4d98-9f4a-9b9a35d52cc5 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 40 |
{
"email": "",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8f4f6dd2-742e-49b2-8b45-ddbfcc09e080 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ca496251-7567-4cb7-a5bf-ba5ef9955505 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 35 |
{
"email": "",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d53026d4-026d-4f8f-94bb-3f37d1f52ce6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 104 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco",
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 31b2f077-084e-4476-8270-d640cbbd71ca |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 55 |
{
"email": "leonardo@test.com",
"password": 12345
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 887f4d85-4958-438c-aef4-f73aea24c5e2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e5ce365e-440c-465b-8de3-28699ffe0046 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "lEonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e7eb7daf-092c-405b-9f41-32d8be2820fa |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 48 |
| Date | Sun, 04 Sep 2022 19:26:04 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Email e/ou senha inválidos"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 401 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | b0544a6f-5b58-4b86-b413-3cb31b43880c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 919a115a-21f9-4aa6-b33a-32ab482e878e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e1383667-42b7-4f2d-8459-09d34e8c5a35 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 06e7353d-d35c-4bc1-b91d-1bb91f6f8dbd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f0ad7b64-9216-40f2-971c-0bfe57835175 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 98 |
{
"nome": "skate",
"preco": 839,
"descricao": "Quico, amigo do chaves",
"quantidade": 43
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 579bf603-469f-4da0-9da3-0e3671630e67 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "mGEHRlMSfmxmS4bQ"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1d5721b8-c851-41c4-8157-19e6fd213af6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 363ee84c-dc9c-434d-97da-9c14c038d97a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 859 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": "10610",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "skate",
"preco": 839,
"descricao": "Quico, amigo do chaves",
"quantidade": 43,
"_id": "mGEHRlMSfmxmS4bQ"
},
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": "2231",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 130cb846-f58d-4813-9e4c-f93245922a36 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b5558878-ba06-48f3-80fc-6bc572bf3a8c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 137 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"nome": "skate",
"preco": 839,
"descricao": "Quico, amigo do chaves",
"quantidade": 43,
"_id": "mGEHRlMSfmxmS4bQ"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "nome" | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| Resposta contem atributo "descricao" | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Total | 7 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | aa20dc05-339c-4fde-92fe-f4abea8a4348 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 100 |
{
"nome": "skate",
"preco": "839",
"descricao": "item editado",
"quantidade": "43"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 312462cd-2487-4d53-a6f2-85a03e2037e4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 85611a65-3bc1-40a1-9c26-31d8866d3205 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8ee44c7e-73d2-42af-9037-eab6f1b07a90 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5bba05c2-103b-4eec-968b-81a10ec14d4a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 70e9d83b-27ec-46cc-b5b2-0330b09b865d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2da18d9d-2e16-4959-b9a5-4bdf679c3608 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8bb6bd67-6fd5-46de-ac23-2beb3fea9209 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 664 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": "10610",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 307,
"descricao": "Mouse",
"quantidade": "2231",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | dbb706bf-9a1b-458b-968a-34eea720f1ba |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": 307
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fc0da140-3f50-4635-b48b-63b72c78e40e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 910df2c5-b86f-4269-963f-da2cbb7bc5bc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d71d454f-60a2-4594-be0e-59e6e7cdb2e5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 48e32908-6191-4997-a518-7aed2ea4156f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ed99bdb3-a886-4045-af78-ca8220efead6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 661 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": "10610",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": 307,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1da83716-cfe6-4cf9-8ece-b61e71719477 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5458bb5b-3730-4ef6-98e5-89d354f774dd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "djXc0qRVVyvAI6v0"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c50c4dba-fbe7-438f-a463-65f72bdd8c62 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ad5e2539-889d-4b8e-a0e1-2174a78458c5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "djXc0qRVVyvAI6v0"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9c81da77-07ab-4852-8497-05ac480661b6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 79d4bf75-5a2f-4e8d-a8f6-f4fda322f249 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1678c53a-b6c2-4205-a7d2-53f69e8a2af2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 17489627-5703-4b60-99b3-b5966508123a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | eead47f9-6989-4aca-a7d0-eb5a37bb0997 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | deaeeb30-01a2-4835-a66c-d5e2e88f4466 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 659 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 10600,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": 307,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b8c10cb4-6c5a-4ba0-9f37-125c574ffb44 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 1a7bfe37-6c70-4972-91ca-42af374bf265 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "4FGsQWG4gU3B8WMV"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 95b71be1-bff9-4ba1-95f0-a43c80643907 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5bdf6bf5-d270-4c66-a729-06d772cd7626 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "4FGsQWG4gU3B8WMV"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NSwiZXhwIjoxNjYyMzIwMTY1fQ.5a2fqDOlnkWCpYnVuS__z8IAOc2JCwrNs5-QlCcz-94 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9a275c95-4c05-4747-9891-05171ff0ec13 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 07325ff0-6e2d-41d8-b0aa-9ecaceb78941 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b680517f-9fa8-482c-8822-b07ec9488562 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 117 |
{
"nome": "Beto Silveira",
"email": "BetoSilveira@gmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4f163da4-9ffe-4df8-b7bc-88b6c144a61d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "hOeHl2WEJvCp8OyY"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c14d4b3b-879d-4c6a-a763-351b38e5fe52 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 62 |
{
"email": "BetoSilveira@gmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3da748f2-0ffb-40a6-856f-60b88b9d2d43 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 277 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9TaWx2ZWlyYUBnbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY1LCJleHAiOjE2NjIzMjAxNjV9.afCvw1Ayp-0puhdH_L3vkQqQg4v96g7CYWmysizJYUw"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 27ea5ec8-8053-4cfe-917a-867df89e824b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | eee80ed8-c8b8-4251-83cb-7d2750b446db |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 663 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": "1059010",
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": 307,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9TaWx2ZWlyYUBnbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY1LCJleHAiOjE2NjIzMjAxNjV9.afCvw1Ayp-0puhdH_L3vkQqQg4v96g7CYWmysizJYUw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 406344bc-fadc-40b0-92f6-91b03b494861 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 68657fa3-63e9-4693-b91e-0aa53a1ff0fe |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "Bq5TrapcwXqlQEQu"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9TaWx2ZWlyYUBnbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY1LCJleHAiOjE2NjIzMjAxNjV9.afCvw1Ayp-0puhdH_L3vkQqQg4v96g7CYWmysizJYUw |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 3a2a98d9-3633-4558-9e96-1be55fbd5200 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 66da886e-2a28-4ec5-a47a-6e440752022c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "hOeHl2WEJvCp8OyY",
"_id": "Bq5TrapcwXqlQEQu"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9TaWx2ZWlyYUBnbWFpbC5jb20iLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY1LCJleHAiOjE2NjIzMjAxNjV9.afCvw1Ayp-0puhdH_L3vkQqQg4v96g7CYWmysizJYUw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f8f4810a-4602-43ff-87c6-6cb7351e5ee8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ebe18ffc-b87a-4a63-8d52-039d238838ad |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | c97d8e2e-4f8b-47d3-b350-9627cca914c4 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6c1c0af2-3a85-47b2-9c7e-a3cc66157ea7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 900 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Beto Silveira",
"email": "BetoSilveira@gmail.com",
"password": "12345",
"administrador": "false",
"_id": "hOeHl2WEJvCp8OyY"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 743144b6-4e77-4250-9d2d-0a8d8a3eddd7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6c98ad54-abc9-4809-bdf0-ef31adaf04a9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f51a731c-a294-4ee0-96b9-73b582b2466b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "Leandro Silva",
"email": "LeandroSilva@hotmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0b502df8-b926-4683-a9be-c500c801b536 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "YKErHJRbLSxqSYPH"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a32ef8d8-5280-472e-966a-8620536a82e8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 64 |
{
"email": "LeandroSilva@hotmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a224d362-fa10-4d6b-97c9-3e8b8e79916c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 280 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9TaWx2YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjUsImV4cCI6MTY2MjMyMDE2NX0.m_beuOBqKSpB-s5Z3gVrt2FpWZYd2iSYPVAJefcmSUs"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9TaWx2YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjUsImV4cCI6MTY2MjMyMDE2NX0.m_beuOBqKSpB-s5Z3gVrt2FpWZYd2iSYPVAJefcmSUs |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bae9714b-dc84-41e3-bc5c-aa8af91d1f2f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Logitech MX Vertical",
"preco": 470,
"descricao": "Mouse",
"quantidade": 381
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 99b51555-9825-47da-826f-9fe001043e45 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 92c3d2c0-fc02-4b3d-8e92-452958004df0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e70d2c3c-d836-4e19-ad80-60ee7f14b46a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 661 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1059000,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": 307,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9TaWx2YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjUsImV4cCI6MTY2MjMyMDE2NX0.m_beuOBqKSpB-s5Z3gVrt2FpWZYd2iSYPVAJefcmSUs |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 627fae33-4f59-40bd-b714-d35aeeb8beae |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Jogo xbox - The Elder scrolls Skyrim",
"preco": 470,
"descricao": "Jogo de xbox360",
"quantidade": 332
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e5f77db7-6249-4b2c-85d8-d7cfd81ff576 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkxlYW5kcm9TaWx2YUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjUsImV4cCI6MTY2MjMyMDE2NX0.m_beuOBqKSpB-s5Z3gVrt2FpWZYd2iSYPVAJefcmSUs |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 32536db4-54a4-4e22-bda2-e4481535cac9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2d3eb8b7-7550-4708-9479-4089325b5153 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | c4911de6-abe3-49ae-8af7-f5c0a998aed8 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e80a2bb2-7b50-4036-b379-e14b99f5a93c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 902 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Leandro Silva",
"email": "LeandroSilva@hotmail.com",
"password": "12345",
"administrador": "false",
"_id": "YKErHJRbLSxqSYPH"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0f631b9a-d22b-47ec-8792-7997d5536925 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 226db954-6474-4afb-9a49-31fe47f49d93 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 49c41b42-5592-4b9f-874d-825a7a2d6e87 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": " ",
"email": " ",
"password": "12345",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b6b9de65-5b26-4f73-a754-7ca5b688aa8f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:05 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email deve ser um email válido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | c3c0aaf4-ca61-499b-8988-3a18fc7c0b84 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c3685bc3-1931-4372-b9f0-6844f00a5b41 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d3600c19-5304-4ad5-9306-0165b3281235 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8cf3b83f-81b3-48c7-8091-666172194106 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fa5f8741-e33c-4818-9bc2-3025501dab86 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "Manoel Paucar",
"email": "ManoelPaucar@outlook.com",
"password": "",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d5360390-3aa6-42a9-90b2-a3d86b9912c1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 991b7ecf-598f-4c04-83d2-6b38df41d5e6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "524829 Souza",
"email": "524829Souza@outlook.com",
"password": " ",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f8c98779-35e4-43e0-9f2b-4092b9b9826e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "GriBYBMaZTwRXn7G"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "password" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 5ec88b5d-b059-4cd8-a955-dac3aba72146 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 108dfed6-d68f-4936-b64d-fed9bea3df90 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 896 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "524829 Souza",
"email": "524829Souza@outlook.com",
"password": " ",
"administrador": "false",
"_id": "GriBYBMaZTwRXn7G"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8fd94e64-b141-44e4-bcfc-c08a56061f83 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 118 |
{
"nome": "Maria Silveira",
"email": "MariaSilveira@yahoo.com.br",
"password": 123,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 03c64447-af43-472d-89ce-b64598d0f467 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a345967a-a2dc-49af-b83f-87d3e9bc1f89 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Leandro Andrade",
"email": "LeandroAndrade@outlook.com",
"password": KdvZBOxWZ15_G0U,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 145 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Adicione aspas em todos os valores. Para mais informações acesse a issue https://github.com/ServeRest/ServeRest/issues/225"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 500 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c11ba5b2-845a-4174-9919-f755b02fbaa2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 16e667b9-fd72-4cad-b715-4795a3d15b4c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 40a715d8-a294-4ad9-a455-be1417cdc773 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Joao castro",
"email": "Joaocastro@yahoo.com.br",
"password": "12345",
"administrador": true
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fc08930b-4c6d-4b76-93c3-5e143dc70cc0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1eb5f1c5-7895-4116-8dd6-2178c3e27407 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Leonardo Paucar",
"email": "LeonardoPaucar@gmail.com",
"password": "12345",
"administrador": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f298c5be-eb01-4993-8266-de1766c2095c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3a4426f2-45b3-4cd0-9d37-8fe17d0812f2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d8d4db0e-e989-4793-b2a9-a6ad718b74b4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "message" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 63ec656b-c2ee-4c22-84b7-acdb5b104e1d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0e88cfc1-107f-4192-b986-eac797d3e3f2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 45 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Usuário não encontrado"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | ca5b1a86-c4ed-4c2f-9e60-48de0ea84084 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9822b360-276d-4da0-9b51-647c829a821c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ff2d3a50-85f8-4f04-99a4-9dda4388f42e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8174d054-d87d-4cfe-aa46-246092c47996 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 150 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 91546072-f1c2-4019-aed8-251915221108 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fb7c6f4f-22d2-4da7-a106-86c5c98467f6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7b919d12-cb69-4567-babf-4ef56f49ee7e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "Beto Souza",
"email": "BetoSouza@yahoo.com.br",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 78880445-9193-448a-8aae-6ee488820f08 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "aNKl7Gw9qnJBJA5r"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9ffc3d3c-c48f-4d98-82c9-8dc5a0240c81 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 62 |
{
"email": "BetoSouza@yahoo.com.br",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 66487138-9319-4850-ba25-9c4a0bd54989 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 277 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9Tb3V6YUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY2LCJleHAiOjE2NjIzMjAxNjZ9.TuQdyFZdy5GvMUhwfliz24kfZtWWOLXcTBdOwld9pgw"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9Tb3V6YUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY2LCJleHAiOjE2NjIzMjAxNjZ9.TuQdyFZdy5GvMUhwfliz24kfZtWWOLXcTBdOwld9pgw |
| Cache-Control | no-cache |
| Postman-Token | fbdcdbca-1518-4ae4-b715-0603b50a6f29 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 33ebc895-a2b1-4f91-bd2b-7e6e1398bb7f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 897 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Beto Souza",
"email": "BetoSouza@yahoo.com.br",
"password": "12345",
"administrador": "false",
"_id": "aNKl7Gw9qnJBJA5r"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9Tb3V6YUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY2LCJleHAiOjE2NjIzMjAxNjZ9.TuQdyFZdy5GvMUhwfliz24kfZtWWOLXcTBdOwld9pgw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fff2c589-ef77-4d9a-8338-4bf6f80932c5 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste-editado",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3e79469f-d4a5-45f7-9d0d-61e7cb574acc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9Tb3V6YUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY2LCJleHAiOjE2NjIzMjAxNjZ9.TuQdyFZdy5GvMUhwfliz24kfZtWWOLXcTBdOwld9pgw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9aaf4cae-19ed-46a6-805e-0070b7fb1f53 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Beto Souza",
"email": "BetoSouza@yahoo.com.br",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a3474819-a949-4ff8-851c-b8522c24d4c3 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 661067ea-f1dd-4962-80c1-307c6c3662bd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ba987905-7bce-445a-8012-3a528c628b19 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5cbc6fc8-59e4-4a4d-a73f-2070d1f14cf0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2e1a7568-6bef-4caf-853b-2adf0bb4b4c8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkJldG9Tb3V6YUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY2LCJleHAiOjE2NjIzMjAxNjZ9.TuQdyFZdy5GvMUhwfliz24kfZtWWOLXcTBdOwld9pgw |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 4f172500-4591-4532-9006-26be5ddd8683 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 129 |
{
"nome": "Experimento Elemento-X",
"email": "supermeninas@townsview.cn",
"password": "teste",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bc7229dc-2c81-4528-8075-e49f9abcb613 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 147 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e9e67bfc-4352-4ee5-bd2d-1137511cc872 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 45f1a31e-642a-4084-9fc4-a6da6b6e27f6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 0 | 1 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Menssagem correta | |
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f9f49fb5-dea4-4331-a9ce-2cb0fe6f3a94 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fee2c140-1d67-4f6a-931e-5d9659e89483 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8d4934f5-bdfd-49f1-932f-4b735d4af7c9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4a72bb12-e6e6-439d-8bab-0173fc158b59 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 109 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"descricao": "descricao não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Resposta Json, contem atributo "descricao" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7befef25-459c-4c1c-a32e-e267750bd04e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3d676ad5-f54f-47fd-ac1e-e3f4d113cfb6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5b6ada6d-39c9-4988-a9de-72173cb00a45 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 9999999999999999,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | de328356-d97a-439e-97a8-3dc986a8c6a1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 160 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "\"preco\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9f603722-126c-4911-abaa-5e9aa9ebb7a6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 9999999999999999
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fba172ce-4552-42b5-aa48-b70bcda24eff |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 221 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"quantidade": "\"quantidade\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 69bb1272-7a9e-427b-9ee5-588913a7c030 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 99 |
{
"nome": "Estrela da eliana",
"preco": -10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f7be902a-58fa-4ce9-8966-995f1a510e21 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c34e1545-bded-4415-a50c-efea89c30730 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0.00000000000001,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 18068632-1f8f-44da-a97f-70752ef94822 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 84172d25-7af6-4a8a-ae43-2d17eba94e32 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 98 |
{
"nome": "Estrela da eliana",
"preco": 10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f683795a-718c-4b38-9500-ecb115927287 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "4zpFviKOUMv4d2cU"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d9c47ebd-62f7-4c50-91ce-c3c1be6d9cf9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 102 |
{
"nome": "Estrela da eliana",
"preco": -470,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fa9ea6f8-1a40-4ee1-b480-33b375d67d50 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 03cc3f8c-9dfd-472e-940c-94906711b1fe |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Estrela da eliana",
"preco": 0.0000000000001,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7940ce0a-27a9-4e27-b92d-3c49b179a237 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8f6161da-318c-4c99-a708-01b3aefa3396 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7ce981bd-bbd5-4053-a39e-5a5e9a2c4b05 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 97a1bb26-18fb-4441-b30d-17e79ba8a784 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ae8c211c-53a3-421d-b0b3-1ea2764d9ec3 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Os carrinhos retornados são únicos por usuário
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7faa02c6-26ed-4e96-a5ee-fe43b1e5d02a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f2735664-a1e0-4ec3-984e-a32efe6bc875 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 595 |
| Date | Sun, 04 Sep 2022 19:26:06 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 1,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 403ec198-007d-4dc0-a3d8-c827339b1167 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 89 |
{
"produtos": [{
"idProduto": "DVD box de One piece",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 50e32d76-60c1-4fea-b854-a2cfae2406a0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 155 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Produto não encontrado",
"item": {
"idProduto": "DVD box de One piece",
"quantidade": 10,
"index": 0
}
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "item" | 1 | 0 | 0 |
| Teste de atributos do item | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 94841502-b709-47fc-a226-8863a1fec027 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 86 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "-10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bb6114ce-d2ca-47e5-af78-3c9dfc4e96a0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 70d945e0-6a2a-4c67-b8dd-2aec08b55e4b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "0"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b1512980-f94e-46b2-bd19-d1047ba7518e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5facf1b9-93cf-48fa-89c3-bfbbc4d75a4e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "a"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a3dfe8ee-531e-42c8-88e7-13b13f400d28 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 140 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d383576e-54f2-4f8f-ad50-c50258df17be |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e3727ad8-f914-44e9-b4a3-ef51956bdbae |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "uaUtPwGyKTGGR2DN"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao concluir uma compra o carrinho é excluído.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c50ed51b-8846-4ee6-bc2e-fa23f517318e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c3ffea6d-aefb-4525-9e28-4c167f9e11a9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7d97b16f-8991-403b-92ac-9870cb223daa |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | eb0e299b-a78f-4774-b360-7659b8bbdb9d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "Hmc8ncOwaHRk0IiI"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NiwiZXhwIjoxNjYyMzIwMTY2fQ.RBngpm5SKjT8dOdlietqy5FKU4BLn9Frrt1c7V3KPJg |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 5214e17b-28f8-4dde-8a65-14490740e9dc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9f07f6d5-27d9-4707-8ea2-92ea8bd985b7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8cb96b17-5114-4a77-b299-660829427b7d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 52 |
{
"email": "leonardo@test.com",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | dd1d917e-d585-4426-bb6f-4b30f098bc3b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f55aa167-9b10-4a22-97e6-0d32c5f7dabf |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 40 |
{
"email": "",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 81c104ae-f09d-47d9-b87f-d46d4ba89877 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 294b42a4-6873-4098-ac56-e1d96c98cce1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 35 |
{
"email": "",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4283ac33-411b-4b6a-88ae-f0346af1d399 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 104 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco",
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d3c457bd-e4ed-4203-aecc-4c65476b4ef9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 55 |
{
"email": "leonardo@test.com",
"password": 12345
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 67d43e83-e1f1-4b15-82bb-a781dae12310 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3a824e9d-2131-488a-a683-6c081fb722f2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "lEonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a1b5fe46-bdf9-4b00-b3b7-a5129b0ba66d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 48 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Email e/ou senha inválidos"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 401 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | d571243f-45de-4368-ba5f-e7cddf6f3d49 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f854a3af-4884-4a36-93f3-644a8f104495 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 71dd9337-2fa6-429d-bd13-dae414a10cc5 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 19bf65b3-9c52-4f8c-9266-3b71d845c323 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b0dd206b-7062-4779-896a-44e6df173757 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 100 |
{
"nome": "Bola do quico",
"preco": 65,
"descricao": "lindo instrumento",
"quantidade": 74
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cf2fce7a-fd1f-46af-b208-0c50b30aa523 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "Rw77BLAJJMFKEIN0"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6702f5d0-fd7e-42b3-9362-e4df01cf34fc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e85d692e-123d-47eb-9dd4-198723cb78f8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 861 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1059000,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Bola do quico",
"preco": 65,
"descricao": "lindo instrumento",
"quantidade": 74,
"_id": "Rw77BLAJJMFKEIN0"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "3051",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b9a45412-87ab-4884-b8f2-057ef577a452 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4a14b471-bfe9-44c6-887d-83f3c94d13bd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 139 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"nome": "Bola do quico",
"preco": 65,
"descricao": "lindo instrumento",
"quantidade": 74,
"_id": "Rw77BLAJJMFKEIN0"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "nome" | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| Resposta contem atributo "descricao" | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Total | 7 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ae7b8097-679e-4f53-89e2-f67ec0199497 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 107 |
{
"nome": "Bola do quico",
"preco": "65",
"descricao": "item editado",
"quantidade": "74"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0bd22339-7b61-4eb0-94b4-f01f269f0838 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 79feb67a-42fd-4a38-99fa-d32a3f1c682d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f6329a0a-35c0-4a65-acc8-c88f07995528 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6bd6d7d9-3f4c-48c9-aa7d-f0a24c473688 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7251457f-eadf-4ce1-aab5-de5b9b3bb2af |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 68436727-36d0-4d90-8bdc-1304e1ff37d3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e308ecca-37aa-47be-83e1-1f3bf03a19e5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 664 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 690,
"descricao": "item editado",
"quantidade": 5199897000,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1059000,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "3051",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | be0f78a0-f073-40fe-8265-85e203f47c27 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 93 |
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": 269
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 747185fe-8ce2-47fb-ba7a-afb8141fce01 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0920aa5a-ea5f-44a8-82ae-a0ff8d444356 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 906ff4e0-f424-4566-859a-96e01fdae80e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | ed37ece9-5a7b-47da-945b-04947be27fd9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a3eb8244-1527-4692-924c-0bf48574688a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 657 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": 269,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1059000,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "3051",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 364a5580-4b43-46c8-914c-db82f653d4d1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 29f11082-d9a1-44e7-b0f6-6dd1ec6c52eb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "nzK4udFVPOoCAsKK"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | cc0c8ab2-0337-44f9-81f6-778cba983ba4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ad700e07-740e-4b5b-9df9-a2ac5261a2a8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10",
"precoUnitario": 732
}
],
"precoTotal": 7320,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "nzK4udFVPOoCAsKK"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5b8b074d-9c90-4b4d-aeb1-a5c8eb9ae85b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e20a2813-b8fe-4b8c-9e97-330339bacbfb |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 186aea92-81b5-4938-8b19-e4b9ce26885a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 95aa4027-b109-4257-b1c1-8f8d775f0888 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 17ae1243-1165-4de8-b9b3-e33acba653a0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5adb3bd0-5f7a-4f0c-b0b2-85067a40d2f0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 657 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": 259,
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1059000,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "3051",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b314d265-aae2-4856-8176-78d6ad0a45da |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fbcb6802-1cf2-4bbf-b8b2-17225dec4bf1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "wzCaURJERiTrrUDx"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 0d5212c8-a1f7-458b-b0e9-18855a1a0247 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7063cfcb-451b-44fd-8204-b54dcc5f7264 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10",
"precoUnitario": 732
}
],
"precoTotal": 7320,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "wzCaURJERiTrrUDx"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2NywiZXhwIjoxNjYyMzIwMTY3fQ.eD7wwhjivhahC1NCXRYtxwhOOq_C7D17jTmBG51pNRA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 03f1bca7-d74b-433e-8678-0520b9666fb6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d449585e-e81e-41b6-a9ec-d49b440e1ec4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 40bc796b-c495-48a0-98c1-bfb8c335f93e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Manoel Souza",
"email": "ManoelSouza@gmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4fc08ae7-0f58-43f8-84d8-f68a94657682 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "B7YZfcnlzgzv0ah9"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 45f0529f-b0c5-455b-adac-45061c81f4aa |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 61 |
{
"email": "ManoelSouza@gmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 55cf20fa-a892-4bce-80d4-30760fa5af20 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 276 |
| Date | Sun, 04 Sep 2022 19:26:07 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ik1hbm9lbFNvdXphQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjcsImV4cCI6MTY2MjMyMDE2N30.C7vzw50I4qDGjHviKSlNHzg6H1bBJ0mLd4g6X0TZ3uk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 36465ebc-d282-4d74-bda3-c587a4bbcab9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 34398d19-fa72-4701-912e-bafade0a7450 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 661 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "24910",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1059000,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "3051",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ik1hbm9lbFNvdXphQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjcsImV4cCI6MTY2MjMyMDE2N30.C7vzw50I4qDGjHviKSlNHzg6H1bBJ0mLd4g6X0TZ3uk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3a6706ba-c390-4ced-a283-c2e2dae51d8b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 22da219c-a6cb-4465-928b-5702dc9166dc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "1D4yiAynRsbExXyo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ik1hbm9lbFNvdXphQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjcsImV4cCI6MTY2MjMyMDE2N30.C7vzw50I4qDGjHviKSlNHzg6H1bBJ0mLd4g6X0TZ3uk |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c628c172-1335-407c-a980-04252c392c7c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bf30f1b8-426d-4bdb-a8ff-d6ce307c8319 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "B7YZfcnlzgzv0ah9",
"_id": "1D4yiAynRsbExXyo"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Ik1hbm9lbFNvdXphQGdtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NjcsImV4cCI6MTY2MjMyMDE2N30.C7vzw50I4qDGjHviKSlNHzg6H1bBJ0mLd4g6X0TZ3uk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6b9022e3-93d7-4046-b4d0-5e8b3af00a3e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9be66be4-8217-40aa-8020-a07b671630a3 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 42997261-ac1f-47a4-863a-31b013ccf865 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 31189ac6-79d2-4585-8a15-932d905b20c3 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 898 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Manoel Souza",
"email": "ManoelSouza@gmail.com",
"password": "12345",
"administrador": "false",
"_id": "B7YZfcnlzgzv0ah9"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ca6159f7-1c89-4e65-8063-69a31277bc63 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f5a2c607-62d5-4a6f-a7e7-a7e30d6e92e6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 406e9bae-b25a-4d57-a027-bf07e4da59ae |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 125 |
{
"nome": "Antonio Rodrigues",
"email": "AntonioRodrigues@gmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bd5729d7-f3cd-44f6-af55-81017f8743ff |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "W0sW4IkAgiTgDCvU"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 76c0314a-5d6c-4cb1-a4fd-4965f9b60349 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 66 |
{
"email": "AntonioRodrigues@gmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2c87254e-df68-4a6e-852f-89da40b17389 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 283 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2RyaWd1ZXNAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OCwiZXhwIjoxNjYyMzIwMTY4fQ.SROysV7VhDAl_lM5ZWy-ryWFPFry1rDWKu73NmCxCq4"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2RyaWd1ZXNAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OCwiZXhwIjoxNjYyMzIwMTY4fQ.SROysV7VhDAl_lM5ZWy-ryWFPFry1rDWKu73NmCxCq4 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d02723b9-4d07-40dd-9a99-d5f3fd73e998 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Logitech MX Vertical",
"preco": 470,
"descricao": "Mouse",
"quantidade": 381
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e4a38ef7-86c7-4064-a83e-5173a4e3311a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c26cac6f-9fa5-4c86-8e9c-85b6ece2d423 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b6b4a246-5779-4296-898e-f4d569e243b6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 661 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "24910",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058990,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "3051",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2RyaWd1ZXNAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OCwiZXhwIjoxNjYyMzIwMTY4fQ.SROysV7VhDAl_lM5ZWy-ryWFPFry1rDWKu73NmCxCq4 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 46be035a-2f9c-42db-a457-3b33a53905a4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Jogo xbox - The Elder scrolls Skyrim",
"preco": 470,
"descricao": "Jogo de xbox360",
"quantidade": 332
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c023535b-7f4b-4ade-9e9a-9564f52207a1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2RyaWd1ZXNAZ21haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OCwiZXhwIjoxNjYyMzIwMTY4fQ.SROysV7VhDAl_lM5ZWy-ryWFPFry1rDWKu73NmCxCq4 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3d589b85-00b7-4522-9b25-9bb3080c36a7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 484a22c6-b8dc-486b-8c8e-5c856ab55477 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | f86fca00-9282-4ff8-8ad9-0ddfccec3c3c |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 69cefc97-d91e-46d0-ba15-2b4e9bbf22e4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 908 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Antonio Rodrigues",
"email": "AntonioRodrigues@gmail.com",
"password": "12345",
"administrador": "false",
"_id": "W0sW4IkAgiTgDCvU"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8ee806e5-b4f8-4760-8155-4f61d0faadcd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cde350c3-4d5b-4fb5-b565-7bf02db6c7e8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 4be52016-a116-4398-9e06-540b195bedfc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"nome": " ",
"email": ".c",
"password": "12345",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | debc22dd-2f5e-48ff-951f-3788010b8e37 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email deve ser um email válido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 934c010b-184c-4812-948b-81fdd5792ae1 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f4f258a2-eedb-482d-8772-d8c3dfe3fa1f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c89b2c92-5456-440f-b7b5-3786b273c7d5 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0ee6cd57-af1f-4d0f-b26f-7970c7d1f963 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9c831643-a402-48b1-838d-9185511737d2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "Lucas Martins",
"email": "LucasMartins@outlook.com",
"password": "",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c336adbd-f0ea-4850-a077-85042c224319 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9c5e8964-1391-467e-9ebc-d3db16e0e40e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 117 |
{
"nome": "Leandro Betanea",
"email": "LeandroBetanea@gmail.com",
"password": " ",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 983af11c-e2b2-4dc8-8abe-477a3c00920a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "ssRbbfE5zEAdAD3B"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "password" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 263c18ec-3732-42e6-b94f-9f579b5ec9e8 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 405e6490-90d5-4ad3-9c18-47c1d1622530 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 900 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Leandro Betanea",
"email": "LeandroBetanea@gmail.com",
"password": " ",
"administrador": "false",
"_id": "ssRbbfE5zEAdAD3B"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2ae3e418-c683-405c-848d-1cab01c9e842 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 114 |
{
"nome": "524829 Rocha",
"email": "524829Rocha@yahoo.com.br",
"password": 123,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c18615e2-94b6-4f42-9cd3-80ac245fa479 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 216b1596-6ec3-4807-a562-a6c05c6b9562 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 125 |
{
"nome": "Joao Martins",
"email": "JoaoMartins@outlook.com",
"password": Ot6r4960PaxP63e,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 145 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Adicione aspas em todos os valores. Para mais informações acesse a issue https://github.com/ServeRest/ServeRest/issues/225"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 500 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0b62a3c3-b39b-4dac-8365-a4b86f97599a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cfc32a7c-29fb-4cb9-8468-1b3c9d8938ca |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e61a76f2-a53f-4433-81fa-f9f606d15ac9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 122 |
{
"nome": "Antonio Rodrigues",
"email": "AntonioRodrigues@gmail.com",
"password": "12345",
"administrador": true
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e408ad9e-94a3-4780-b8c5-e80f44c0a76c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8469390a-6079-4d8b-a6ba-3e6844429890 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 116 |
{
"nome": "Joao Rodrigues",
"email": "JoaoRodrigues@yahoo.com.br",
"password": "12345",
"administrador": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 784327c4-a359-461f-a0aa-890579421cd4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ed61cb8c-bde0-40a3-9109-c2d845a09809 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 28a918f5-77bc-4371-bde1-0cd5d982f915 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "message" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 3abee24c-64c9-4e40-8e3b-3d9733c5bfcf |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5da9d02f-970c-45c8-8896-a70ca41a0e62 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 45 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Usuário não encontrado"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | d9ef3377-8555-40b3-97e3-8c61f17e764e |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d5cf67fc-dcb5-4d6a-98d9-faeef8a98e05 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c8672253-8361-460a-8ada-3c3ace65abf4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3c0a53ce-bb3d-4ac3-aac6-35df674b3990 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 150 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | aac9d8f3-24d1-45c1-aae4-14459fedbc18 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e4717809-97f2-4c1e-af0d-4e5c4d775756 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e6090dd9-c3f5-4c41-939b-8ddb1a6f4bd7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 120 |
{
"nome": "Antonio Rocha",
"email": "AntonioRocha@yahoo.com.br",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | db5ddcc0-fc3b-4598-889e-6de4d6fadb19 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "xbDlkGYNvZoErEz4"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c9b8358c-5aa9-4ab1-9047-62a93ed648d1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 65 |
{
"email": "AntonioRocha@yahoo.com.br",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f2bfef54-10bd-4e3f-b37b-17ddb23d48ff |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 281 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2NoYUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY4LCJleHAiOjE2NjIzMjAxNjh9.CgdA1BM3N9s2AKl5sJNl7fJ69YAZ8EaXQukHlZgU8kc"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2NoYUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY4LCJleHAiOjE2NjIzMjAxNjh9.CgdA1BM3N9s2AKl5sJNl7fJ69YAZ8EaXQukHlZgU8kc |
| Cache-Control | no-cache |
| Postman-Token | b7384ec5-4955-403f-a96f-1b4f3ea5c8ae |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5e685767-5759-4ecf-b5f4-14f34cb73144 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 903 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
},
{
"nome": "Antonio Rocha",
"email": "AntonioRocha@yahoo.com.br",
"password": "12345",
"administrador": "false",
"_id": "xbDlkGYNvZoErEz4"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2NoYUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY4LCJleHAiOjE2NjIzMjAxNjh9.CgdA1BM3N9s2AKl5sJNl7fJ69YAZ8EaXQukHlZgU8kc |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8851eb23-c4f7-40b8-9d75-ade97bdcca21 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste-editado",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d2125fc2-1b33-469d-b37e-74b2d6b337bf |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2NoYUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY4LCJleHAiOjE2NjIzMjAxNjh9.CgdA1BM3N9s2AKl5sJNl7fJ69YAZ8EaXQukHlZgU8kc |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fc8fb323-a039-48dd-9af7-ce9d34be36d6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "Antonio Rocha",
"email": "AntonioRocha@yahoo.com.br",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3e878658-feda-4ce7-b2f0-ca69955bda39 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5766c6f3-0bda-4e21-84ef-b177e9e91532 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a0ff5812-6894-467d-bc19-3e60b3e29b3d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d00aba09-aa10-4464-9a4e-0a4cd963f7c9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | efc91cf8-1ef3-4f09-aba8-d2deb606fbbc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkFudG9uaW9Sb2NoYUB5YWhvby5jb20uYnIiLCJwYXNzd29yZCI6IjEyMzQ1IiwiaWF0IjoxNjYyMzE5NTY4LCJleHAiOjE2NjIzMjAxNjh9.CgdA1BM3N9s2AKl5sJNl7fJ69YAZ8EaXQukHlZgU8kc |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ce3e207c-117c-4021-8a4e-5a0cb75e8f43 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 129 |
{
"nome": "Experimento Elemento-X",
"email": "supermeninas@townsview.cn",
"password": "teste",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d08a2377-3bd8-4c2f-aa64-59f7e351112f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 147 |
| Date | Sun, 04 Sep 2022 19:26:08 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7c1f50f6-2903-462e-830a-69f648f12b65 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9471f0ba-5873-4865-8f72-1c1190a3ee40 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 0 | 1 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Menssagem correta | |
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 26023d11-c0bf-4a96-bc13-5ca7f29c19ec |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4be0a9b8-9c2c-4de2-8b7a-7c92b1760213 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6a81ef8f-0333-41a0-965e-d72d15b638c6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a140ce31-5a85-46b1-a5fd-28885f6855d7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 109 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"descricao": "descricao não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Resposta Json, contem atributo "descricao" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c3193f3e-3d6c-4ce3-868d-3a17e1a689aa |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cfe26682-1801-498b-b99c-42fa1c65251f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d3052c09-21b6-4b78-a6a9-e5963af672f6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 9999999999999999,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 638545e0-4a4f-4a2a-a114-cf561d54917a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 160 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "\"preco\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fe678024-19bb-49b0-89f4-c9972db83ccf |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 9999999999999999
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 22c324e6-5366-4550-bf39-b8dc093dfbd9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 221 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"quantidade": "\"quantidade\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bfcd8614-74ae-4677-bae3-bf8926d110e2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 99 |
{
"nome": "Estrela da eliana",
"preco": -10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 95954fda-026e-464c-b5e8-6b08fe7a69b0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2d1cc777-e961-4828-afc3-248d53fd040a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0.00000000000001,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | da3dccfe-c8e9-4533-9bae-6d3669eef222 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f0f2cd6a-f054-4978-a25a-c14c1138d82d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 98 |
{
"nome": "Estrela da eliana",
"preco": 10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7ff81887-4369-4ac2-ac82-33bc8e9d4e58 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "kA1zgxHYtcXpGh4o"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 2222b191-1d5e-498f-a577-9aa7afa045cd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 102 |
{
"nome": "Estrela da eliana",
"preco": -470,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 00474fee-a042-476d-9784-1710ca591d93 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e925081a-241d-47f4-9967-1f1c261f4774 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Estrela da eliana",
"preco": 0.0000000000001,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 22d741fd-e008-4b57-92f0-eace14fb7f13 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 68524c97-cf85-442f-8fdd-93c0b24a88b8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f5fe45e3-f05d-4a1f-8ae5-4a335abf5e12 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fe124c04-8026-47b6-8001-c170f5a1f7ec |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9aea74d0-f5a4-4a57-94a7-ae978b896a7b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Os carrinhos retornados são únicos por usuário
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e93ad6b1-7a85-4564-aebf-0a3c3d163a19 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 27ce7996-5e74-4867-a6e4-51f34aaa3ee7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 595 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 1,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f213823a-a0f7-4029-9246-e8d2e499c4e3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 89 |
{
"produtos": [{
"idProduto": "DVD box de One piece",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5ff34d8b-0259-49be-9b6a-3e8826b21e01 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 155 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Produto não encontrado",
"item": {
"idProduto": "DVD box de One piece",
"quantidade": 10,
"index": 0
}
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "item" | 1 | 0 | 0 |
| Teste de atributos do item | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 27f4422c-9f3d-47cc-82dd-e6678b3694ee |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 86 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "-10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c8981ca4-3356-4f61-b727-49cf68ad473c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 73f983f6-7d26-421d-aa62-579265cc7bc9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "0"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3023ee4f-4a34-4362-96fd-d33d2fa3f6b8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a4eb094e-b016-48d2-827b-f2ecf4f11751 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "a"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f14d1283-7871-4856-9cc5-30cd2823fbba |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 140 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f831fa6b-cd23-4ebc-b918-7b0d8172e6d6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 509033cd-3927-43a7-8de8-54dc61491d7f |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "2CiUFAKXnNSpct2o"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao concluir uma compra o carrinho é excluído.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 909dd219-7ea8-40cd-9877-5a84a5cda811 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 37c421ec-afe3-41c5-ac7a-fe1244f31714 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6dc52c8d-7d67-4c43-a00b-c9d9485214bc |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3c156d2a-bb78-4ba0-bcb3-3583e142f7d8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "G6rChSfBzD6N5RFE"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU2OSwiZXhwIjoxNjYyMzIwMTY5fQ.C7wqyJUPSsiNzmhNu943lL8clAaeWngokCUUwKXpTpU |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 0c3789bf-6d73-4980-b06f-252a7927d6fb |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 38570899-ea35-44f1-becf-66f6358af393 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 18cda9b0-b1ec-48c4-b3ed-4738772940af |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 52 |
{
"email": "leonardo@test.com",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c6461853-422e-4551-9c87-155d43a21482 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8bb1207a-edb6-4829-a809-98a399874e07 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 40 |
{
"email": "",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e5a24880-8866-4fb0-8e4d-8a6aeb83037c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:09 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7cdffb8e-1563-4625-b7a2-efb123229e9f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 35 |
{
"email": "",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5ec0d4bd-492a-4768-b437-3767f793f8a7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 104 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco",
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3b3827cf-5833-47ee-a2d8-451d729ca22f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 55 |
{
"email": "leonardo@test.com",
"password": 12345
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b8942440-675d-482d-ac23-639cb2dd607e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b25892f7-e188-4e59-a34c-416612dff691 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "lEonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6e52fc69-0ed5-40f9-a07c-5b09d4a6ed25 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 48 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Email e/ou senha inválidos"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 401 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 62ce2b1f-0266-4f46-be25-81bda872f067 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d46a072f-18ad-4ece-91d1-9a0a167d4036 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bf2f0e4f-3b94-4d2f-a807-0f820c7fac5f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 15a926bb-5826-4f42-9f79-23e5026e55f4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 6c74ed5e-ad08-4208-9a01-3f9ca829c283 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 99 |
{
"nome": "Bola do quico",
"preco": 38,
"descricao": "negocio de andar",
"quantidade": 38
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9fea2969-03d0-4e14-a8f8-b9daecab7183 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "xlDXUw9329bw4pC9"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | cb9ebad0-98f1-408c-89fc-53e12488f4e0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d18ab59f-3534-44bb-9b48-5a9bf4e761cd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 858 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "24910",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058990,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Bola do quico",
"preco": 38,
"descricao": "negocio de andar",
"quantidade": 38,
"_id": "xlDXUw9329bw4pC9"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "30491",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f7c28d45-23d7-46ef-9460-9402ae71b7e1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 68417f57-e91a-418d-9ddf-5385740c21dc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 138 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"nome": "Bola do quico",
"preco": 38,
"descricao": "negocio de andar",
"quantidade": 38,
"_id": "xlDXUw9329bw4pC9"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "nome" | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| Resposta contem atributo "descricao" | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Total | 7 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | dc75e58e-8a53-4be6-9f7e-ca3405726094 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 107 |
{
"nome": "Bola do quico",
"preco": "38",
"descricao": "item editado",
"quantidade": "38"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f4450a53-b36d-49be-95b1-eef7ca1996fa |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c92d743c-f8a0-4af5-8827-fe87a1470eff |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 41ec120e-f273-482d-bd58-6980ae2f7c37 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c0681b21-9148-4999-ba31-3a1aab92e9d3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 31edcf09-bffb-4fa4-a00a-2a23d47eb2ab |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d69f4242-e950-4954-a581-c06fd2f33429 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b45333bb-7b51-4a4b-9768-2adb7b4e3643 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 662 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "24910",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058990,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 694,
"descricao": "Mouse",
"quantidade": "30491",
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 28bb4759-49aa-45df-9d96-8445161ba9d7 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Pedra filosófal",
"preco": 153,
"descricao": "Mouse",
"quantidade": 463
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 34d898fd-0f06-41b2-b516-933244646d79 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | dd6a32f1-8196-428a-a57f-820e266da67f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e8cd758d-a24e-4c2f-bed6-9b1f56b6a0aa |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 84ae9c83-6b88-4c6b-99a8-c34465da6657 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 44398b76-8b6e-4b8b-baec-ac3e77955508 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 658 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "24910",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058990,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 153,
"descricao": "Mouse",
"quantidade": 463,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | be8f5d20-0f15-4eaa-b4b8-1816717327b2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | aec019ca-ad85-4c21-a5ed-edd788e5bd35 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "IPJRvoZ1WYJk8dKV"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | d7d3e663-66a3-4d3c-8b66-225d7c585196 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 40cbab65-9866-4e8b-8455-9681df8f02b1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "IPJRvoZ1WYJk8dKV"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e0641f4c-fb49-450d-9eea-6fa0afbc13d1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2a3b9fb9-2b4d-485d-baea-8bc265d46131 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 96b31a4f-1149-4bc8-861c-e347539b8b2b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cc8e3ddd-9876-492f-9e54-2654fa253108 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | bdaba753-750a-4946-b3bb-7b50a6398888 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 68b222f7-0eca-443a-95c7-eb18c446fb10 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 658 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "24910",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058980,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 153,
"descricao": "Mouse",
"quantidade": 463,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 40b569e7-210a-4fe8-91ab-50c0a2ee0d51 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bf321b29-b6aa-4923-b81c-799b8c6dc41b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "M5zCssJJ85orYpTU"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 622e7938-1e18-4251-9a21-6c15dd90d307 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6a10bc70-c416-40cf-a798-90b83d5abea4 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "10",
"precoUnitario": 732
}
],
"precoTotal": 7320,
"quantidadeTotal": "010",
"idUsuario": "cFUgrMaMwU8eyxiN",
"_id": "M5zCssJJ85orYpTU"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.lK1ctdmUBwtNTrG_u3L6FkM8n4Yqc3wsE7uDQRkf0Pk |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 091d929a-29c4-49f7-b8cc-e6fd732b7345 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | db4be552-56f6-4cf5-95fa-5417dc7e33d1 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0d1f2c34-4c99-4cf0-825b-322d894c69e6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Carlos Silveira",
"email": "CarlosSilveira@hotmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b3383443-b87a-410f-a53c-6cf99b804acc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "VD1qaxcslsGkPlfS"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3386206d-ba5c-4324-93a1-7ebce5f2c522 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 66 |
{
"email": "CarlosSilveira@hotmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b2d74fe1-4184-4c66-8183-d872ae19c415 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 283 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNhcmxvc1NpbHZlaXJhQGhvdG1haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.q5ufX9HN1zzXKAtAPRPapnZgXA_GbCviT9LspvEd3-Q"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | a07e8869-92c1-4841-b3a5-2183895d4997 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b0f5d497-6880-4a57-a9e2-f9ee3c2f5779 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 660 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "2490010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058980,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 153,
"descricao": "Mouse",
"quantidade": 463,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNhcmxvc1NpbHZlaXJhQGhvdG1haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.q5ufX9HN1zzXKAtAPRPapnZgXA_GbCviT9LspvEd3-Q |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ad3f683e-f16f-4a0a-b471-b6513134f564 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"produtos": [{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f4619a2a-bf71-45c5-92cf-2b0daa2b2e96 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "2cqWcBbRbbb3wbyf"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNhcmxvc1NpbHZlaXJhQGhvdG1haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.q5ufX9HN1zzXKAtAPRPapnZgXA_GbCviT9LspvEd3-Q |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 57f38ca1-e680-42f9-8ac8-533f469b2e95 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d67db470-5915-47b4-8597-ce66e47c23f2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 980 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 2,
"carrinhos": [
{
"produtos": [
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": "10",
"precoUnitario": 473
}
],
"precoTotal": 4730,
"quantidadeTotal": "010",
"idUsuario": "VD1qaxcslsGkPlfS",
"_id": "2cqWcBbRbbb3wbyf"
},
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkNhcmxvc1NpbHZlaXJhQGhvdG1haWwuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MCwiZXhwIjoxNjYyMzIwMTcwfQ.q5ufX9HN1zzXKAtAPRPapnZgXA_GbCviT9LspvEd3-Q |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9bb1f441-e105-4a7d-9831-a3da84d4f880 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | eb38904e-9c25-4ebf-a267-835977bd8523 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | f59821bb-420a-46b2-953d-03ef605c6b86 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4fc2f51f-663b-404c-a6ef-53a828dc3a1b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 906 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Carlos Silveira",
"email": "CarlosSilveira@hotmail.com",
"password": "12345",
"administrador": "false",
"_id": "VD1qaxcslsGkPlfS"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bd5033f3-5254-4c33-80ed-d43874241ef2 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 321c5cb9-40b8-4994-810f-0fec7ec426f7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 115e2065-4de2-45d1-9cb8-006b312b9a72 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 118 |
{
"nome": "Joao Martins",
"email": "JoaoMartins@yahoo.com.br",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | f12db9f6-e01d-477e-9bdf-1783d2f54bde |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "zzYkExl8heyz59nA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 72d56583-d861-4198-b1b2-a8c7cf98b57b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 64 |
{
"email": "JoaoMartins@yahoo.com.br",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 8d095f7f-afed-4bec-a06a-e1950f0a4139 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 280 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkpvYW9NYXJ0aW5zQHlhaG9vLmNvbS5iciIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzAsImV4cCI6MTY2MjMyMDE3MH0.XW93kbfrp2XeQidNH3fejkWC4lIAsvmzKMzS-nlOOTE"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkpvYW9NYXJ0aW5zQHlhaG9vLmNvbS5iciIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzAsImV4cCI6MTY2MjMyMDE3MH0.XW93kbfrp2XeQidNH3fejkWC4lIAsvmzKMzS-nlOOTE |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a159b9f8-91ab-4bad-a867-2c35acf0cc68 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Logitech MX Vertical",
"preco": 470,
"descricao": "Mouse",
"quantidade": 381
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | df6aaff7-8ebb-431b-a1bb-8323a53c7d49 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 720ccd8c-e5a7-4a6a-8edb-45a18e835f17 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | eb8fd30a-6be0-474f-bd28-7950f9cc4380 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 660 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"produtos": [
{
"nome": "bandana do Icarly",
"preco": 732,
"descricao": "item editado",
"quantidade": "2490010",
"_id": "BeeJh5lz3k6kSIzA"
},
{
"nome": "Notebook lenovo ryzen5 3500u - 8gb 1tb",
"preco": 473,
"descricao": "notebook",
"quantidade": 1058970,
"_id": "K6leHdftCeOJj8BJ"
},
{
"nome": "Pedra filosófal",
"preco": 153,
"descricao": "Mouse",
"quantidade": 463,
"_id": "yeDdGmRmqodGzXns"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| A quantidade de produtos corresponde a quantidade de itens | 1 | 0 | 0 |
| Resposta contem todos os atributos dos produtos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkpvYW9NYXJ0aW5zQHlhaG9vLmNvbS5iciIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzAsImV4cCI6MTY2MjMyMDE3MH0.XW93kbfrp2XeQidNH3fejkWC4lIAsvmzKMzS-nlOOTE |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1cfc040e-3539-48c6-91b1-03ec260cb5f6 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Jogo xbox - The Elder scrolls Skyrim",
"preco": 470,
"descricao": "Jogo de xbox360",
"quantidade": 332
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d14c4ecc-7e22-42d5-b800-223c669800fc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IkpvYW9NYXJ0aW5zQHlhaG9vLmNvbS5iciIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzAsImV4cCI6MTY2MjMyMDE3MH0.XW93kbfrp2XeQidNH3fejkWC4lIAsvmzKMzS-nlOOTE |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7f05f801-a646-4a59-b8fd-46cf1d0b833d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4f32ce23-3c20-420b-a495-6c0f252a5de8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Rota exclusiva para administradores"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | cb2d3899-2566-44f5-9b54-39fdab663911 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 34c7bfac-3382-416e-97f7-6847cef8a5f9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 901 |
| Date | Sun, 04 Sep 2022 19:26:10 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
},
{
"nome": "Joao Martins",
"email": "JoaoMartins@yahoo.com.br",
"password": "12345",
"administrador": "false",
"_id": "zzYkExl8heyz59nA"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c64eac5a-f20e-4bb2-bfcf-f7bc12ee9a24 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fc8a7d82-de37-4331-8cab-0721ea8695ad |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 39169265-8696-48da-a99a-befa9f599007 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 93 |
{
"nome": "@ 1234",
"email": "@1234 ",
"password": "12345",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 15ec137c-dbb6-4ae9-a274-dbcac06e49d6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email deve ser um email válido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | 1dfd5eb4-7d01-48eb-9f69-3e3096b21cbd |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d8cd0c57-9799-494f-8eb3-2e9cc8dd77bd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 08ffec49-279d-4e40-8055-87c74d277755 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 312e75cd-9679-45bd-bf96-7334ce3f29f7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bf139613-1b97-4393-80c6-ce591b9ba5e4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 122 |
{
"nome": "Beatriz Rodrigues",
"email": "BeatrizRodrigues@outlook.com",
"password": "",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5ea7c0bd-0004-48b3-8d5c-4ed96dad002a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 0ad13212-32c9-4ca2-8bbc-44caf866b5f1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Clarrise Oliveira",
"email": "ClarriseOliveira@outlook.com",
"password": " ",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2856a2a6-a205-429c-b2d9-17d6dabf10bf |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "Y7j6znrvyqhUmZIl"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "password" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | bee08300-1366-4f00-99fb-ebb74be2e41b |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 00f8929a-e006-4513-bedf-70f33139f8dd |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 906 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Clarrise Oliveira",
"email": "ClarriseOliveira@outlook.com",
"password": " ",
"administrador": "false",
"_id": "Y7j6znrvyqhUmZIl"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios contem todos os atributos | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | d32152c5-fdd9-4287-b19b-d81b90d5aa3e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 115 |
{
"nome": "Manoel Tavares",
"email": "ManoelTavares@gmail.com",
"password": 123,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 45018247-4bff-4632-83b4-042239def84c |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "password" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fe89587c-b81d-490b-bc59-bda4d53882c3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 132 |
{
"nome": "Antonio Betanea",
"email": "AntonioBetanea@yahoo.com.br",
"password": 9GvE_oWxUVFCwuD,
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 145 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Adicione aspas em todos os valores. Para mais informações acesse a issue https://github.com/ServeRest/ServeRest/issues/225"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 500 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 90051458-a26a-4d41-a803-e98ff1d192d1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 704fbaae-5e30-4563-be8e-60e6778e34ec |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c423a56e-e2f6-4e99-b034-88ba0f430544 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 116 |
{
"nome": "Lucas Tavares",
"email": "LucasTavares@hotmail.com",
"password": "12345",
"administrador": true
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | ac1fd41f-dba3-41cd-bc3a-692a279ee2d8 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e090dabb-6eb2-4f2c-9724-5bf19d3bd3dd |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 121 |
{
"nome": "Clarrise Silveira",
"email": "ClarriseSilveira@hotmail.com",
"password": "12345",
"administrador": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | c7df256e-96de-4067-9a70-e730d2e9eec2 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 67 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"administrador": "administrador deve ser 'true' ou 'false'"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "administrador" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | eadf6d42-b4f1-4305-a815-61bbd99b4bf8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9189c549-14ce-4c52-9e94-1caf43939a43 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 0 | 1 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 1 | 3 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Resposta Json, contem atributo "message" | |
| Body matches string | |
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | c42cf81c-e803-469e-8748-868828a91611 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 3140a851-b5c8-49e5-84ab-3ebc8d313056 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 45 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Usuário não encontrado"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Cache-Control | no-cache |
| Postman-Token | c10f6e25-b329-46c5-92c9-c14b423871c3 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b97958e1-f2f3-42a7-98e6-c9bb83831840 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 686 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 3,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1b79bcbd-eae2-4a2c-abcd-cdc991ff4cb0 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cb5eab92-72db-4cd7-9808-e521535a045d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 150 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar DELETE em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 66099d6f-60a2-4a7f-94c0-4c2160275b01 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d6875f3d-2a3a-4987-9e91-20be3146a112 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 400 | |
Não é permitido cadastrar usuário com email já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 65330ee5-3e42-4bdd-8fc7-c50a40494588 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 119 |
{
"nome": "Pedro Andrade",
"email": "PedroAndrade@hotmail.com",
"password": "12345",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cd1818d3-a1bf-456b-9545-1e7a3b388d32 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "9fv2ChzaCx9vXGmU"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Tamanho do id e o esperado | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ec541b33-cbf9-420c-9151-9a7e52aaec6d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 64 |
{
"email": "PedroAndrade@hotmail.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2510c011-f6a2-41fc-9ae2-dc8053e9e853 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 280 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IlBlZHJvQW5kcmFkZUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzEsImV4cCI6MTY2MjMyMDE3MX0.t3XnzWXRaGWZn48-PJ5E4tjx6ffiufPV2CDbNWwPsW8"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IlBlZHJvQW5kcmFkZUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzEsImV4cCI6MTY2MjMyMDE3MX0.t3XnzWXRaGWZn48-PJ5E4tjx6ffiufPV2CDbNWwPsW8 |
| Cache-Control | no-cache |
| Postman-Token | 6e5601ad-bc57-4164-8a62-1fb813c9e937 |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d6713fbf-d7c9-4537-b279-1f7b93d47e7e |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 902 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 4,
"usuarios": [
{
"nome": "Fulano da Silva",
"email": "cicrano@qa.com.br",
"password": "teste",
"administrador": "true",
"_id": "2Huny5EhV94f9bH8"
},
{
"nome": "Pedro Andrade",
"email": "PedroAndrade@hotmail.com",
"password": "12345",
"administrador": "false",
"_id": "9fv2ChzaCx9vXGmU"
},
{
"nome": "leonardo Silva",
"email": "leonardo@test.com",
"password": "12345",
"administrador": "true",
"_id": "cFUgrMaMwU8eyxiN"
},
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true",
"_id": "vlHskDNeKH9qSXGV"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "usuarios" | 1 | 0 | 0 |
| Usuarios nao possui dados sensiveis | 0 | 1 | 0 |
| Total | 3 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Usuarios nao possui dados sensiveis | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IlBlZHJvQW5kcmFkZUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzEsImV4cCI6MTY2MjMyMDE3MX0.t3XnzWXRaGWZn48-PJ5E4tjx6ffiufPV2CDbNWwPsW8 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b03fa49a-3597-4ec6-afa5-87b27eb25373 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 131 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste-editado",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 93e46d8f-3224-40d0-a772-c8fed7c0439a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IlBlZHJvQW5kcmFkZUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzEsImV4cCI6MTY2MjMyMDE3MX0.t3XnzWXRaGWZn48-PJ5E4tjx6ffiufPV2CDbNWwPsW8 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | cf710ea9-6286-4946-b8eb-8dcbd555bfa1 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 118 |
{
"nome": "Pedro Andrade",
"email": "PedroAndrade@hotmail.com",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b9193ce6-cdad-442c-a02f-2d2c78fd6725 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | fc0d6204-cb45-4077-bc75-ec66a0e3766f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7a959837-a336-4bee-8363-17bcafad59f6 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 85039ecb-7068-48d5-896e-23180940f9de |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 123 |
{
"nome": "Editado funcional",
"email": "edicaodeesquema@testao.yt",
"password": "teste",
"administrador": "true"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d1f6a327-eaac-475e-a432-e083bc6209f5 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro alterado com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido cadastrar usuário com email já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6IlBlZHJvQW5kcmFkZUBob3RtYWlsLmNvbSIsInBhc3N3b3JkIjoiMTIzNDUiLCJpYXQiOjE2NjIzMTk1NzEsImV4cCI6MTY2MjMyMDE3MX0.t3XnzWXRaGWZn48-PJ5E4tjx6ffiufPV2CDbNWwPsW8 |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 8558f403-dc3c-4780-b88f-bb72e69beb4a |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 129 |
{
"nome": "Experimento Elemento-X",
"email": "supermeninas@townsview.cn",
"password": "teste",
"administrador": "false"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 32e4d4b4-214a-49e8-8a8f-16e0004fb55a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 147 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Não é possível realizar PUT em /usuarios/. Acesse http://localhost:3000 para ver as rotas disponíveis e como utilizá-las."
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 403 | 0 | 1 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 0 | 1 | 0 |
| Total | 2 | 2 | 0 |
| Test Name | Assertion Error |
|---|---|
| Status code is 403 | |
| Body matches string | |
Não é permitido excluir usuário com carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | eec18d2b-51bb-4aa6-9b56-9d9052a987ca |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | a8ad3d20-3aad-42d7-8ad6-02d64b218090 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 46 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Nenhum registro excluído"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 0 | 1 | 0 |
| Total | 3 | 1 | 0 |
| Test Name | Assertion Error |
|---|---|
| Menssagem correta | |
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | bf3f9a88-267b-4376-b3c0-b4d057a83e0b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | e4923fff-4846-4a5a-9766-6127f0d04747 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | a017b103-f557-4968-9e45-ce8fea105741 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 85 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 34875732-50d6-42eb-ae82-a7febaf9f72b |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 109 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"descricao": "descricao não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Resposta Json, contem atributo "descricao" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 77ef3e35-8982-482b-bd1b-8086d7c8f195 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 97 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5a9af500-13da-46ba-9197-65b4bf226598 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e8c75ae0-2868-4f8c-bfc4-02c208c0f051 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 9999999999999999,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0fab9d4f-3dfe-42dc-9038-3b5ddb109b9d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 160 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "\"preco\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 9f1e3a27-2f46-4762-b686-a5c9b3d9332d |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0,
"descricao": "E de brincar",
"quantidade": 9999999999999999
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 9dea0c44-52f6-482d-abf8-c7443a2e2dde |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 221 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo",
"quantidade": "\"quantidade\" must be a safe number - Erro number.unsafe - Abra uma issue informando essa resposta. https://github.com/ServeRest/ServeRest/issues"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | ec1f18bf-5db4-42cb-ad67-82308b83076c |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 99 |
{
"nome": "Estrela da eliana",
"preco": -10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0f856ca0-f3d3-4164-8b21-7c38d5abfd37 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 38d5174b-4729-4ec1-91f7-6cd434194e81 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 112 |
{
"nome": "Estrela da eliana",
"preco": 0.00000000000001,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 497fd7e3-f2ec-4e32-90a6-0aaffa8c9a99 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "preco" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | cb204700-2c15-41d2-8444-b31322752024 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 98 |
{
"nome": "Estrela da eliana",
"preco": 10,
"descricao": "E de brincar",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | b54cd44a-5e9e-4ea0-bb70-41c1ff66c47d |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "vzXr5hhy2ZjaBYcq"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 201 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta Json, contem atributo "message" | 1 | 0 | 0 |
| Resposta Json, contem atributo "_id" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | f06920cd-177c-49ad-bc6b-e6068c2c11ce |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 102 |
{
"nome": "Estrela da eliana",
"preco": -470,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | aad3af94-be32-45e7-8b5a-c7155441d5a9 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 53 |
| Date | Sun, 04 Sep 2022 19:26:11 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um número positivo"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido cadastrar produto com nome já utilizado.
Caso não seja encontrado usuário com o ID informado é realizado novo cadastro ao invés de alteração.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | c1f2a334-2fb6-42ca-ae98-ccd460b75eb9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 113 |
{
"nome": "Estrela da eliana",
"preco": 0.0000000000001,
"descricao": "E de brincar - editado",
"quantidade": 0
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4c164768-ff77-4722-ad83-e696fe9de3b0 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 44 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"preco": "preco deve ser um inteiro"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code is 400 | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "preco" | 1 | 0 | 0 |
| menssagem correta de erro | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Não é permitido excluir produto que faz parte de carrinho.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MSwiZXhwIjoxNjYyMzIwMTcxfQ._0GbTXTYC-HnYw2CIplWVz3yV-Dk8ME1Ha61V0QVIHA |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 55f1347b-515a-4dc4-b73e-150581ad3c9e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 92f2e310-9405-4b0e-a6d2-ff53adc59352 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1e6e5946-bdf2-4a73-b423-679eaa18778f |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 286d74f2-089a-4b43-a75e-3069a5d95f6a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| tamanho do token bearer esta correto | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Os carrinhos retornados são únicos por usuário
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 1f8e3f99-c223-42e3-8363-5a8160f7ce76 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | fa6060e3-59c6-4103-97dc-8975fe1335ef |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 595 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"quantidade": 1,
"carrinhos": [
{
"produtos": [
{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": 2,
"precoUnitario": 470
},
{
"idProduto": "K6leHdftCeOJj8BJ",
"quantidade": 1,
"precoUnitario": 5240
}
],
"precoTotal": 6180,
"quantidadeTotal": 3,
"idUsuario": "oUb7aGkMtSEPf6BZ",
"_id": "qbMqntef4iTOwWfg"
}
]
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "quantidade" | 1 | 0 | 0 |
| Resposta contem atributo "carrinhos" | 1 | 0 | 0 |
| A quantidade corresponde a quantidade de carrinhos | 1 | 0 | 0 |
| Resposta contem todos os atributos dos carrinhos | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 180e8310-04f7-4688-93c9-996d1071f440 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 89 |
{
"produtos": [{
"idProduto": "DVD box de One piece",
"quantidade": "10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 80d9f086-98c5-4aab-be98-a05a3cded359 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 155 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Produto não encontrado",
"item": {
"idProduto": "DVD box de One piece",
"quantidade": 10,
"index": 0
}
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "item" | 1 | 0 | 0 |
| Teste de atributos do item | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 6 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 3f25f5fc-dfbe-4092-a7af-838fd50069a4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 86 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "-10"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 465888e2-96d9-44b8-99c1-5e30219675af |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | e523a679-56a2-493a-980a-5106f12ca42b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "0"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6047f1c1-ebc8-4119-b6d6-e82414f9cffe |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 149 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número positivo",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 7c1854df-8ebf-4ca4-8e79-a2f88b30dae9 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "BeeJh5lz3k6kSIzA",
"quantidade": "a"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 4dad7b3e-c546-43c7-ae50-01025fe0b524 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 140 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"produtos[0].quantidade": "produtos[0].quantidade deve ser um número",
"produtos": "produtos não contém 1 valor obrigatório"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 | 1 | 0 | 0 |
| Corpo de resposta json | 1 | 0 | 0 |
| Resposta contem atributo "produtos" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 17d65e22-1732-40aa-8da5-03b43d18b713 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 0df8c404-ce23-4c3d-b1ce-b23e99e49b29 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "oY82ORKsaU5bQAaJ"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao concluir uma compra o carrinho é excluído.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | abb2aeaa-6e55-4a00-b930-f2fa25ce18f8 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 6d507821-cd08-4ea5-a882-d6a10ae628ff |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 51 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e contem body json | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Body matches string | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
O carrinho é vinculado ao usuário do token enviado no header `Authorization`, sendo possível cadastrar apenas 1 carrinho por usuário.
Ao cadastrar carrinho com sucesso é feita a redução da quantidade no cadastro de cada produto inserido no carrinho.
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 443a91c8-f272-48fb-8dc9-2ba76722940b |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 84 |
{
"produtos": [{
"idProduto": "yeDdGmRmqodGzXns",
"quantidade": "1"
}]
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 7b680969-b906-499e-b389-fa57f0173495 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 82 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Cadastro realizado com sucesso",
"_id": "GnmQA6fmZXpe4s6z"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 201 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "_id" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
Ao cancelar uma compra o carrinho é excluído e o estoque dos produtos desse carrinho é reabastecido.
O carrinho excluído será o vinculado ao usuário do `token` utilizado.
| Header Name | Header Value |
|---|---|
| Accept | application/json |
| Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 206d3069-fe3d-4b90-b8ec-b6ededa51e01 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | d0392319-192f-4f06-ac11-aa8eb53b1682 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 86 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Registro excluído com sucesso. Estoque dos produtos reabastecido"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| contem menssagem e texto de exclusão | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 16ac0bea-4bf4-496d-99d2-a49c4bd5cb85 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 52 |
{
"email": "leonardo@test.com",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 2b8e39ce-104f-489a-a83d-fd591addf03a |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 56 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 4d751be9-6f36-4ade-8c16-b7e15ae7b208 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 40 |
{
"email": "",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | bf881f1e-c9ae-4b04-9087-8226bbae77fc |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 5f74ae10-ea47-4cd4-9e74-5389438d9c7e |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 35 |
{
"email": "",
"password": ""
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 795e4b8a-0b36-4d28-9f41-37d13510e7e7 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 104 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"email": "email não pode ficar em branco",
"password": "password não pode ficar em branco"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "email" | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | 36dc3bc7-f9d6-45b7-b143-5987ccb68663 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 55 |
{
"email": "leonardo@test.com",
"password": 12345
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | 5cd29b84-5408-4871-8e4a-4b2a648ff8da |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 50 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"password": "password deve ser uma string"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 400 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "password" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Cache-Control | no-cache |
| Postman-Token | b36080c2-9966-44c0-91af-9f72360c37b4 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "lEonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | aa072fdb-adc5-4dff-b506-3abf50b40b97 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 48 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Email e/ou senha inválidos"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 401 e e erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 4 | 0 | 0 |
| Test Name | Assertion Error |
|---|
A duração do token retornado em authorization é de 600 segundos (10 minutos). Caso esteja expirado irá receber status code 401 (Unauthorized).
| Header Name | Header Value |
|---|---|
| Content-Type | application/json |
| Accept | application/json |
| Content-Type | application/json |
| User-Agent | PostmanRuntime/7.29.0 |
| Accept | */* |
| Cache-Control | no-cache |
| Postman-Token | 5f969869-cf32-45cf-aee3-1006199f65e3 |
| Host | localhost:3000 |
| Accept-Encoding | gzip, deflate, br |
| Connection | keep-alive |
| Content-Length | 57 |
{
"email": "leonardo@test.com",
"password": "12345"
}
| Header Name | Header Value |
|---|---|
| Access-Control-Allow-Origin | * |
| x-dns-prefetch-control | off |
| x-frame-options | SAMEORIGIN |
| strict-transport-security | max-age=15552000; includeSubDomains |
| x-download-options | noopen |
| x-content-type-options | nosniff |
| x-xss-protection | 1; mode=block |
| x-moesif-transaction-id | cb0c36b7-1c57-4d47-8e16-be94b42cd696 |
| Content-Type | application/json; charset=utf-8 |
| Content-Length | 271 |
| Date | Sun, 04 Sep 2022 19:26:12 GMT |
| Connection | keep-alive |
| Keep-Alive | timeout=5 |
{
"message": "Login realizado com sucesso",
"authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6Imxlb25hcmRvQHRlc3QuY29tIiwicGFzc3dvcmQiOiIxMjM0NSIsImlhdCI6MTY2MjMxOTU3MiwiZXhwIjoxNjYyMzIwMTcyfQ.UZ0ehKkuTtnd0sX32CGgFQvzszdi4LyvM8DYnsCYsEY"
}
| Name | Passed | Failed | Skipped |
|---|---|---|---|
| Status code e 200 e nao erro | 1 | 0 | 0 |
| Corpo de resposta json sem erro | 1 | 0 | 0 |
| Resposta contem atributo "message" | 1 | 0 | 0 |
| Resposta contem atributo "authorization" | 1 | 0 | 0 |
| Menssagem correta | 1 | 0 | 0 |
| Total | 5 | 0 | 0 |
| Test Name | Assertion Error |
|---|